ethernet: modify rx_urb_size size for sr9700 and dm9620
authorhwg <hwg@rock-chips.com>
Wed, 21 Mar 2012 07:47:15 +0000 (15:47 +0800)
committerhwg <hwg@rock-chips.com>
Wed, 21 Mar 2012 07:47:15 +0000 (15:47 +0800)
drivers/net/usb/dm9620.c
drivers/net/usb/sr9700.c

index 9c806f7c1f10dfbeb7d4e81393d85bc689e7f039..9df1e01d47d6688c9f23b071c74fac9dcb0ac846 100755 (executable)
@@ -622,7 +622,7 @@ static int dm9620_bind(struct usbnet *dev, struct usb_interface *intf)
        dev->net->hard_header_len += DM_TX_OVERHEAD;
        dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
 #ifdef RK2818   //harris 2010.12.27
-       dev->rx_urb_size = 8912; // ftp fail fixed
+       dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD+1;
 #else
        dev->rx_urb_size = 2048;//dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD+1; // ftp fail fixed
 #endif
index cd16b97f0d77099fa38540a6ca3e1867392fd40f..11281802b52524ab117fab3fc3b0410d094dfc91 100755 (executable)
@@ -421,7 +421,7 @@ static int sr9700_android_bind(struct usbnet *dev, struct usb_interface *intf)
        dev->net->ethtool_ops = &sr9700_android_ethtool_ops;
        dev->net->hard_header_len += QF_TX_OVERHEAD;
        dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
-       dev->rx_urb_size =4096;// dev->net->mtu + ETH_HLEN + QF_RX_OVERHEAD;
+       dev->rx_urb_size = dev->net->mtu + ETH_HLEN + QF_RX_OVERHEAD;
 
        dev->mii.dev = dev->net;
        dev->mii.mdio_read = sr9700_android_mdio_read;