Skip to content

Commit

Permalink
[broadcom]: fix KNET MTU setting with Linux Kernel > 4.10.0 (#3895)
Browse files Browse the repository at this point in the history
We need to set min_mtu/max_mtu properly to support MTU setting

torvalds/linux@61e84623

Signed-off-by: Wataru Ishida <[email protected]>
  • Loading branch information
ishidawataru authored and lguohan committed Dec 13, 2019
1 parent fbcaaa4 commit e8f3bee
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5128,6 +5128,10 @@ bkn_init_ndev(u8 *mac, char *name)
if (dev->mtu == 0) {
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))
Expand Down

0 comments on commit e8f3bee

Please sign in to comment.