]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: leave staterr in place and instead us a helper function to check bits
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:46:03 +0000 (07:46 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 12:48:23 +0000 (20:48 +0800)
commit9d65d05c9c61bd5dbe7e5eeba4de9fe67a6fab03
tree6013dbf75669626e2eaf65e382a790c73a351641
parenteb2fa9567753be3a9bf63fad1f4e2d3d6118940e
igb: leave staterr in place and instead us a helper function to check bits

Instead of doing a byte swap on the staterr bits in the Rx descriptor we can
save ourselves a bit of space and some CPU time by instead just testing for
the various bits out of the Rx descriptor directly.

(cherry picked from commit 3ceb90fd4898853cdac43084f0c6ee7270cb15f3)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb.h
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c