Skip to content

Commit

Permalink
knet: adapt to newer kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Wataru Ishida <[email protected]>
  • Loading branch information
Wataru Ishida committed Sep 27, 2019
1 parent 7c77414 commit 4584785
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5132,6 +5132,10 @@ bkn_init_ndev(u8 *mac, char *name)
/* Device vectors */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
dev->netdev_ops = &bkn_netdev_ops;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,49))
dev->min_mtu = 68;
dev->max_mtu = rx_buffer_size;
#endif
#else
dev->open = bkn_open;
dev->hard_start_xmit = bkn_tx;
Expand Down

0 comments on commit 4584785

Please sign in to comment.