1. 17 1月, 2018 1 次提交
  2. 18 10月, 2017 1 次提交
    • K
      net: usb: Convert timers to use timer_setup() · d28bb967
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Woojung Huh <woojung.huh@microchip.com>
      Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Ben Hutchings <ben@decadent.org.uk>
      Cc: Philippe Reynes <tremyfr@gmail.com>
      Cc: Jarod Wilson <jarod@redhat.com>
      Cc: Arvind Yadav <arvind.yadav.cs@gmail.com>
      Cc: "Bjørn Mork" <bjorn@mork.no>
      Cc: "Stefan Brüns" <stefan.bruens@rwth-aachen.de>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Greg Ungerer <gerg@linux-m68k.org>
      Cc: linux-usb@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d28bb967
  3. 22 9月, 2017 3 次提交
  4. 03 8月, 2017 2 次提交
  5. 14 6月, 2017 1 次提交
  6. 22 4月, 2017 1 次提交
  7. 29 3月, 2017 1 次提交
  8. 23 3月, 2017 1 次提交
  9. 11 2月, 2017 1 次提交
  10. 09 12月, 2016 1 次提交
  11. 06 12月, 2016 1 次提交
  12. 19 11月, 2016 1 次提交
  13. 16 11月, 2016 1 次提交
  14. 03 11月, 2016 1 次提交
  15. 21 10月, 2016 1 次提交
    • J
      net: use core MTU range checking in USB NIC drivers · f77f0aee
      Jarod Wilson 提交于
      usbnet:
      - Remove stale new_mtu <= 0 check in usbnet.c
      - Set min_mtu = 0, max_mtu = 65535 (sub-drivers must set their own
        max_mtu and/or min_mtu as needed)
      
      r8152:
      - Set appropriate max_mtu for different variants (1500 or 9194)
      
      lan78xx:
      - Set max_mtu = 9000
      
      asix_driver:
      - max_mtu = 16384 for ax88178 variant
      
      ax88179:
      - max_mtu = 4088
      
      cdc_ncm:
      - max_mtu from hardware
      
      cdc-phonet:
      - min_mtu = 6, max_mtu = 65541
      
      sierra_net:
      - max_mtu = 1500, call usbnet_change_mtu directly
      - sierra_net_change_mtu checked for MTU > 1500, then called
        usbnet_change_mtu, but if we set max_mtu to let the network core handle
        the range check, then we can simply call usbnet_change_mtu directly
      
      smsc75xx:
      - max_mtu = 9000
      
      CC: netdev@vger.kernel.org
      CC: Woojung Huh <woojung.huh@microchip.com>
      CC: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
      CC: Hayes Wang <hayeswang@realtek.com>
      CC: Oliver Neukum <oneukum@suse.com>
      CC: Steve Glendinning <steve.glendinning@shawell.net>
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f77f0aee
  16. 12 10月, 2016 1 次提交
  17. 07 9月, 2016 1 次提交
    • B
      lan78xx: mark symbols static where possible · e0c79ff6
      Baoyou Xie 提交于
      We get a few warnings when building kernel with W=1:
      drivers/net/usb/lan78xx.c:1182:6: warning: no previous prototype for 'lan78xx_defer_kevent' [-Wmissing-prototypes]
      drivers/net/usb/lan78xx.c:1409:5: warning: no previous prototype for 'lan78xx_nway_reset' [-Wmissing-prototypes]
      drivers/net/usb/lan78xx.c:2000:5: warning: no previous prototype for 'lan78xx_set_mac_addr' [-Wmissing-prototypes]
      ....
      
      In fact, these functions are only used in the file in which they are
      declared and don't need a declaration, but can be made static.
      so this patch marks these functions with 'static'.
      Signed-off-by: NBaoyou Xie <baoyou.xie@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0c79ff6
  18. 14 8月, 2016 1 次提交
  19. 05 5月, 2016 1 次提交
  20. 29 4月, 2016 2 次提交
  21. 21 3月, 2016 1 次提交
    • D
      Revert "lan78xx: add ndo_get_stats64" · 1c191307
      David S. Miller 提交于
      This reverts commit a59f8c5b.
      
      There are several bugs in this new code, for example:
      
      1) Uses sleeping locks in get_stats64, which is not allowed,
         as the operation can be invoked in an atomic context.
      
      2) Uses PM fields without CONFIG_PM or similar guards.
      
      3) Does not synchronize HW stats when the device runtime
         suspends.
      
      Therefore this is being reverted until a correct version
      is implemented.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1c191307
  22. 19 3月, 2016 2 次提交
  23. 01 3月, 2016 3 次提交
  24. 29 1月, 2016 3 次提交
  25. 08 1月, 2016 2 次提交
  26. 29 9月, 2015 1 次提交
  27. 23 9月, 2015 1 次提交
  28. 18 9月, 2015 3 次提交