summaryrefslogtreecommitdiff
path: root/net/sctp/sysctl.c
diff options
context:
space:
mode:
authorPrashant Sreedharan <prashant@broadcom.com>2014-06-19 05:38:13 +0400
committerDavid S. Miller <davem@davemloft.net>2014-06-20 07:55:49 +0400
commit40c1deaf6c2b42d7ee4e604ba5793cf9da292d96 (patch)
treed029ec5177916822721a345c1f1c9c95780b726e /net/sctp/sysctl.c
parent2cd0d743b05e87445c54ca124a9916f22f16742e (diff)
downloadlinux-40c1deaf6c2b42d7ee4e604ba5793cf9da292d96.tar.xz
tg3: Clear NETIF_F_TSO6 flag before doing software GSO
Commit d3f6f3a1d818410c17445bce4f4caab52eb102f1 ("tg3: Prevent page allocation failure during TSO workaround") modified driver logic to use tg3_tso_bug() for any TSO fragment that hits hardware bug conditions thus the patch increased the scope of work for tg3_tso_bug() to cover devices that support NETIF_F_TSO6 as well. Prior to the patch, tg3_tso_bug() would only be used on devices supporting NETIF_F_TSO. A regression was introduced for IPv6 packets requiring the workaround. To properly perform GSO on SKBs with TCPV6 gso_type, we need to call skb_gso_segment() with NETIF_F_TSO6 feature flag cleared, or the function will return NULL and cause a kernel oops as tg3 is not handling a NULL return value. This patch fixes the problem. Signed-off-by: Prashant Sreedharan <prashant@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sysctl.c')
0 files changed, 0 insertions, 0 deletions