]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e1000e: cleanup Rx checksum offload code
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 5 Jan 2012 00:34:05 +0000 (00:34 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 06:36:58 +0000 (14:36 +0800)
commit5ac94685f91f3c954f22642c797994aa48d1322d
tree73dcfc7b168100a30ca77494d84b97af6f65f688
parent933b21a8287a136954059d0b4fca2016b8ca5c8e
e1000e: cleanup Rx checksum offload code

1) cleanup whitespace in e1000_rx_checksum() function header comment
2) do not check hardware checksum when Rx checksum is disabled
3) reduce duplicated calls to le16_to_cpu() by just using it within
   e1000_rx_checksum() instead of in each call to the function

v2: use swab16 instead of le16_to_cpu & htons and corrected type for the
passed-in csum

(cherry picked from commit afd12939a09ca8f96cf8349c913dc143471c9b3c)
Signed-off-by: Bruce Allan <bruce.w.allan@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/e1000e/netdev.c