USBNET: centralize computing of max rx/tx qlen
[deliverable/linux.git] / drivers / net / usb / ax88179_178a.c
index 7ce243bf708870f1a3836ee95c0ec7c2d301b4f3..658540433faf8a64232d16f9fc665d16a006ad97 100644 (file)
@@ -688,6 +688,9 @@ static int ax88179_change_mtu(struct net_device *net, int new_mtu)
                                  2, 2, &tmp16);
        }
 
+       /* max qlen depend on hard_mtu and rx_urb_size */
+       usbnet_update_max_qlen(dev);
+
        return 0;
 }
 
@@ -1433,6 +1436,7 @@ static struct usb_driver ax88179_178a_driver = {
        .probe =        usbnet_probe,
        .suspend =      ax88179_suspend,
        .resume =       ax88179_resume,
+       .reset_resume = ax88179_resume,
        .disconnect =   usbnet_disconnect,
        .supports_autosuspend = 1,
        .disable_hub_initiated_lpm = 1,
This page took 0.025787 seconds and 5 git commands to generate.