]> err.no Git - linux-2.6/commitdiff
dm9601: Fix receive MTU
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 1 Oct 2007 11:36:07 +0000 (13:36 +0200)
committerJeff Garzik <jeff@garzik.org>
Tue, 2 Oct 2007 16:59:10 +0000 (12:59 -0400)
dm9601 didn't take the ethernet header into account when calculating
RX MTU, causing packets bigger than 1486 to fail.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/usb/dm9601.c

index 16c7a0e878505a7b229817012de9e3f2b3eab50c..a2de32fabc170a9a688750ce7f427f67f4e7a5e6 100644 (file)
@@ -405,7 +405,7 @@ static int dm9601_bind(struct usbnet *dev, struct usb_interface *intf)
        dev->net->ethtool_ops = &dm9601_ethtool_ops;
        dev->net->hard_header_len += DM_TX_OVERHEAD;
        dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
-       dev->rx_urb_size = dev->net->mtu + DM_RX_OVERHEAD;
+       dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD;
 
        dev->mii.dev = dev->net;
        dev->mii.mdio_read = dm9601_mdio_read;