net: thunderbolt: Fix TCPv6 GSO checksum calculation
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 13 Sep 2023 05:26:47 +0000 (08:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Sep 2023 12:45:05 +0000 (13:45 +0100)
commite0b65f9b81fef180cf5f103adecbe5505c961153
treea34156cb570210fe060376b495da3c0dfe57496b
parent75ad80ed88a182ab2ad5513e448cf07b403af5c3
net: thunderbolt: Fix TCPv6 GSO checksum calculation

Alex reported that running ssh over IPv6 does not work with
Thunderbolt/USB4 networking driver. The reason for that is that driver
should call skb_is_gso() before calling skb_is_gso_v6(), and it should
not return false after calculates the checksum successfully. This probably
was a copy paste error from the original driver where it was done properly.

Reported-by: Alex Balcanquall <alex@alexbal.com>
Fixes: e69b6c02b4c3 ("net: Add support for networking over Thunderbolt cable")
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/thunderbolt/main.c