1. 01 11月, 2012 1 次提交
  2. 26 4月, 2012 1 次提交
    • J
      dl2k: Clean up rio_ioctl · 1bb57e94
      Jeff Mahoney 提交于
      The dl2k driver's rio_ioctl call has a few issues:
      - No permissions checking
      - Implements SIOCGMIIREG and SIOCGMIIREG using the SIOCDEVPRIVATE numbers
      - Has a few ioctls that may have been used for debugging at one point
        but have no place in the kernel proper.
      
      This patch removes all but the MII ioctls, renumbers them to use the
      standard ones, and adds the proper permission check for SIOCSMIIREG.
      
      We can also get rid of the dl2k-specific struct mii_data in favor of
      the generic struct mii_ioctl_data.
      
      Since we have the phyid on hand, we can add the SIOCGMIIPHY ioctl too.
      
      Most of the MII code for the driver could probably be converted to use
      the generic MII library but I don't have a device to test the results.
      Reported-by: NStephan Mueller <stephan.mueller@atsec.com>
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1bb57e94
  3. 07 4月, 2012 1 次提交
  4. 25 8月, 2011 1 次提交
  5. 18 8月, 2011 1 次提交
  6. 12 8月, 2011 1 次提交
  7. 22 6月, 2011 1 次提交
  8. 12 6月, 2011 1 次提交
  9. 30 4月, 2011 2 次提交
  10. 28 1月, 2011 1 次提交
  11. 26 8月, 2010 1 次提交
  12. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  13. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  14. 18 2月, 2010 1 次提交
  15. 13 2月, 2010 1 次提交
  16. 04 12月, 2009 1 次提交
  17. 19 11月, 2009 1 次提交
  18. 14 10月, 2009 1 次提交
  19. 01 9月, 2009 1 次提交
  20. 09 7月, 2009 1 次提交
  21. 29 5月, 2009 1 次提交
  22. 07 4月, 2009 1 次提交
  23. 22 11月, 2008 1 次提交
  24. 04 11月, 2008 1 次提交
  25. 28 10月, 2008 1 次提交
  26. 28 6月, 2008 1 次提交
  27. 23 5月, 2008 1 次提交
  28. 19 1月, 2008 5 次提交
  29. 23 12月, 2007 1 次提交
    • A
      dl2k endianness fixes (.24 fodder?) · 78ce8d3d
      Al Viro 提交于
      * shift before cpu_to_le64(), not after it
      * writel() converts to l-e itself
      * misc missing conversions
      * in set_multicast() hash_table[] is host-endian; we feed it to card
        via writel() and populate it as host-endian, so we'd better put the
        first element into it also in host-endian
      * pci_unmap_single() et.al. expect host-endian, not little-endian
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      78ce8d3d
  30. 11 10月, 2007 4 次提交
  31. 12 7月, 2007 1 次提交
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  32. 11 7月, 2007 1 次提交