jme: use new helper tcp_v6_gso_csum_prep
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 18 Feb 2020 20:06:11 +0000 (21:06 +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/jme.c

index 2e49755..de3c7ce 100644 (file)
@@ -2077,12 +2077,7 @@ jme_tx_tso(struct sk_buff *skb, __le16 *mss, u8 *flags)
                                                                IPPROTO_TCP,
                                                                0);
                } else {
-                       struct ipv6hdr *ip6h = ipv6_hdr(skb);
-
-                       tcp_hdr(skb)->check = ~csum_ipv6_magic(&ip6h->saddr,
-                                                               &ip6h->daddr, 0,
-                                                               IPPROTO_TCP,
-                                                               0);
+                       tcp_v6_gso_csum_prep(skb);
                }
 
                return 0;