From: Jeff Kirsher <hidden> Date: 2012-03-17 09:08:14
From: Yi Zou <redacted>
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 <redacted>
Tested-by: Ross Brattain <redacted>
Signed-off-by: Jeff Kirsher <redacted>
---
include/linux/netdevice.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
From: Jeff Kirsher <hidden> Date: 2012-03-17 09:08:15
From: Yi Zou <redacted>
Fix a bug when using 'ethtool -K ethx tx off' to turn off tx ip checksum,
FCoE CRC offload should not be impacte. The skb_checksum_help() is needed
only if it's not FCoE traffic for ip checksum, regardless of ethtool toggling
the tx ip checksum on or off. Instead of using CHECKSUM_PARTIAL, we will
use CHECKSUM_UNNECESSARY as a proper indication to avoid sw ip checksum
on FCoE frames.
Ref. to original discussion thread:
http://patchwork.ozlabs.org/patch/146567/
CC: "James E.J. Bottomley" <redacted>
CC: Robert Love <redacted>
Signed-off-by: Yi Zou <redacted>
Tested-by: Ross Brattain <redacted>
Signed-off-by: Jeff Kirsher <redacted>
---
drivers/scsi/fcoe/fcoe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: Ben Hutchings <hidden> Date: 2012-03-17 18:42:03
On Sat, 2012-03-17 at 02:08 -0700, Jeff Kirsher wrote:
From: Yi Zou <redacted>
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.
[...]
This should also be documented as valid in include/linux/skbuff.h,
though I don't think the fix should be held up for that.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
On Sat, 2012-03-17 at 02:08 -0700, Jeff Kirsher wrote:
quoted
From: Yi Zou <redacted>
This is related to fixing the bug of dropping FCoE frames when
disabling tx ip
quoted
checksum by 'ethtool -K ethx tx off'. The FCoE protocol stack driver
would
quoted
use CHECKSUM_UNNECESSARY on tx path instead of CHECKSUM_PARTIAL (as
indicated in
quoted
the 2/2 of this series). To do so, netif_needs_gso() has to be changed
here to
quoted
not do gso for both CHECKSUM_PARTIAL and CHECKSUM_UNNECESSARY.
[...]
This should also be documented as valid in include/linux/skbuff.h,
though I don't think the fix should be held up for that.
Ben.
Sure, I will send a separate patch to update the skbuff.h shortly.
Thanks,
yi
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
From: David Miller <davem@davemloft.net> Date: 2012-03-19 21:38:24
From: Jeff Kirsher <redacted>
Date: Sat, 17 Mar 2012 02:08:11 -0700
From: Yi Zou <redacted>
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 <redacted>
Tested-by: Ross Brattain <redacted>
Signed-off-by: Jeff Kirsher <redacted>
From: David Miller <davem@davemloft.net> Date: 2012-03-19 21:38:27
From: Jeff Kirsher <redacted>
Date: Sat, 17 Mar 2012 02:08:12 -0700
From: Yi Zou <redacted>
Fix a bug when using 'ethtool -K ethx tx off' to turn off tx ip checksum,
FCoE CRC offload should not be impacte. The skb_checksum_help() is needed
only if it's not FCoE traffic for ip checksum, regardless of ethtool toggling
the tx ip checksum on or off. Instead of using CHECKSUM_PARTIAL, we will
use CHECKSUM_UNNECESSARY as a proper indication to avoid sw ip checksum
on FCoE frames.
Ref. to original discussion thread:
http://patchwork.ozlabs.org/patch/146567/
CC: "James E.J. Bottomley" <redacted>
CC: Robert Love <redacted>
Signed-off-by: Yi Zou <redacted>
Tested-by: Ross Brattain <redacted>
Signed-off-by: Jeff Kirsher <redacted>