enic: use new helper tcp_v6_gso_csum_prep
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 18 Feb 2020 20:02:26 +0000 (21:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Feb 2020 19:20:59 +0000 (11:20 -0800)
Use new helper tcp_v6_gso_csum_prep in additional network drivers.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c

index ddf60dc9ad167d913f9d2c454aacc2da1779e947..3fc858b2c87b10b72d74ff9ebbece213a6c5d0cc 100644 (file)
@@ -696,8 +696,7 @@ static void enic_preload_tcp_csum(struct sk_buff *skb)
                tcp_hdr(skb)->check = ~csum_tcpudp_magic(ip_hdr(skb)->saddr,
                        ip_hdr(skb)->daddr, 0, IPPROTO_TCP, 0);
        } else if (skb->protocol == cpu_to_be16(ETH_P_IPV6)) {
-               tcp_hdr(skb)->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
-                       &ipv6_hdr(skb)->daddr, 0, IPPROTO_TCP, 0);
+               tcp_v6_gso_csum_prep(skb);
        }
 }