Reapply the fix to address setting MTU > 1500 causing portmgrd crash on BRCM platforms (#8472)
This commit is contained in:
parent
3ad4096ea2
commit
bbd7667abe
@ -6341,6 +6341,11 @@ bkn_init_ndev(u8 *mac, char *name)
|
||||
dev->mtu = rx_buffer_size;
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
|
||||
dev->min_mtu = 68;
|
||||
dev->max_mtu = rx_buffer_size;
|
||||
#endif
|
||||
|
||||
/* Device vectors */
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
|
||||
dev->netdev_ops = &bkn_netdev_ops;
|
||||
|
Reference in New Issue
Block a user