net: do not do gso for CHECKSUM_UNNECESSARY in netif_needs_gso
authorYi Zou <yi.zou@intel.com>
Fri, 16 Mar 2012 00:18:49 +0000 (00:18 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 17 Mar 2012 08:59:40 +0000 (01:59 -0700)
commit0646819cd31786f4b024d0056f73adf460be40aa
tree2e09e882376d39bdab7d04537fb444ab0345db1e
parentc29f40ca19b8ca284a2d1415e26b802bc9b2fb67
net: do not do gso for CHECKSUM_UNNECESSARY in netif_needs_gso

This is related to fixing the bug of dropping FCoE frames when disabling tx ip
checksum by 'ethtool -K ethx tx off'. The FCoE protocol stack driver would
use CHECKSUM_UNNECESSARY on tx path instead of CHECKSUM_PARTIAL (as indicated in
the 2/2 of this series). To do so, netif_needs_gso() has to be changed here to
not do gso for both CHECKSUM_PARTIAL and CHECKSUM_UNNECESSARY.

Ref. to original discussion thread:
http://patchwork.ozlabs.org/patch/146567/

Signed-off-by: Yi Zou <yi.zou@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
include/linux/netdevice.h