Skip to content

Commit

Permalink
Reapply the fix to address setting MTU > 1500 causing portmgrd crash …
Browse files Browse the repository at this point in the history
…on BRCM platforms (#8472)
  • Loading branch information
gechiang authored and lguohan committed Aug 15, 2021
1 parent aae4e8d commit 5ed6b64
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ed6b64

Please sign in to comment.