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

index 01a50a4b21135fd2c347c6d80aadc3ca874bb5b6..d6588502a050af749d051998609bb9ece1dad089 100644 (file)
@@ -2504,12 +2504,7 @@ bnad_tso_prepare(struct bnad *bnad, struct sk_buff *skb)
                                           IPPROTO_TCP, 0);
                BNAD_UPDATE_CTR(bnad, tso4);
        } else {
-               struct ipv6hdr *ipv6h = ipv6_hdr(skb);
-
-               ipv6h->payload_len = 0;
-               tcp_hdr(skb)->check =
-                       ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, 0,
-                                        IPPROTO_TCP, 0);
+               tcp_v6_gso_csum_prep(skb);
                BNAD_UPDATE_CTR(bnad, tso6);
        }