diff options
author | David S. Miller <davem@davemloft.net> | 2018-11-12 02:57:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-12 02:57:54 +0100 |
commit | 2b9b7502dfcb6169dbf3359702953bf756b4e273 (patch) | |
tree | 58ab22096d49de6a0e049cf1267edc34b82916dc /drivers/net/usb | |
parent | PCI: add USR vendor id and use it in r8169 and w6692 driver (diff) | |
parent | Linux 4.20-rc2 (diff) | |
download | linux-2b9b7502dfcb6169dbf3359702953bf756b4e273.tar.xz linux-2b9b7502dfcb6169dbf3359702953bf756b4e273.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 2d17f3b9bb16..f2d01cb6f958 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -1321,6 +1321,8 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf) dev->net->ethtool_ops = &smsc95xx_ethtool_ops; dev->net->flags |= IFF_MULTICAST; dev->net->hard_header_len += SMSC95XX_TX_OVERHEAD_CSUM; + dev->net->min_mtu = ETH_MIN_MTU; + dev->net->max_mtu = ETH_DATA_LEN; dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; pdata->dev = dev; |