Reapply the fix to address setting MTU > 1500 causing portmgrd crash on BRCM platforms (#8472)

This commit is contained in:
gechiang 2021-08-14 17:01:00 -07:00 committed by Judy Joseph
parent 0108c7de58
commit c679ebf931

View File

@ -6341,6 +6341,11 @@ bkn_init_ndev(u8 *mac, char *name)
dev->mtu = rx_buffer_size; 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 */ /* Device vectors */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
dev->netdev_ops = &bkn_netdev_ops; dev->netdev_ops = &bkn_netdev_ops;