1. 06 11月, 2014 6 次提交
  2. 23 10月, 2014 2 次提交
    • L
      amd-xgbe: Fix napi Rx budget accounting · 55ca6bcd
      Lendacky, Thomas 提交于
      Currently the amd-xgbe driver increments the packets processed counter
      each time a descriptor is processed.  Since a packet can be represented
      by more than one descriptor incrementing the counter in this way is not
      appropriate.  Also, since multiple descriptors cause the budget check
      to be short circuited, sometimes the returned value from the poll
      function would be larger than the budget value resulting in a WARN_ONCE
      being triggered.
      
      Update the polling logic to properly account for the number of packets
      processed and exit when the budget value is reached.
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      55ca6bcd
    • L
      amd-xgbe: Properly handle feature changes via ethtool · 386f1c96
      Lendacky, Thomas 提交于
      The ndo_set_features callback function was improperly using an unsigned
      int to save the current feature value for features such as NETIF_F_RXCSUM.
      Since that feature is in the upper 32 bits of a 64 bit variable the
      result was always 0 making it not possible to actually turn off the
      hardware RX checksum support.  Change the unsigned int type to the
      netdev_features_t type in order to properly capture the current value
      and perform the proper operation.
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      386f1c96
  3. 23 9月, 2014 1 次提交
  4. 13 9月, 2014 1 次提交
  5. 06 9月, 2014 3 次提交
  6. 03 9月, 2014 1 次提交
  7. 02 9月, 2014 4 次提交
  8. 13 8月, 2014 1 次提交
  9. 09 8月, 2014 2 次提交
  10. 08 8月, 2014 1 次提交
  11. 06 8月, 2014 2 次提交
  12. 03 8月, 2014 1 次提交
  13. 31 7月, 2014 4 次提交
  14. 30 7月, 2014 2 次提交
  15. 24 7月, 2014 1 次提交
  16. 16 7月, 2014 1 次提交
  17. 15 7月, 2014 6 次提交
  18. 09 7月, 2014 1 次提交
    • M
      declance: Fix 64-bit compilation warnings · 3d5baba0
      Maciej W. Rozycki 提交于
      This fixes compiler warnings:
      
      drivers/net/ethernet/amd/declance.c: In function 'lance_init_ring':
      drivers/net/ethernet/amd/declance.c:478: warning: format '%8.8x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
      drivers/net/ethernet/amd/declance.c:487: warning: format '%8.8x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
      drivers/net/ethernet/amd/declance.c:503: warning: cast from pointer to integer of different size
      drivers/net/ethernet/amd/declance.c:520: warning: cast from pointer to integer of different size
      
      in 64-bit compilation.  Where the value printed is an offset (whose range
      will always fit) the cast uses a 32-bit type, otherwise, where it is a
      host memory address, the pointer is output directly with %p.  Also the
      remaining `0x' prefix is dropped for consistency across these messages.
      
      Tested with both 32-bit and 64-bit compilation, as well as at the run time
      (with the debug messages affected enabled).
      Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3d5baba0