diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-02-18 21:06:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-19 11:20:59 -0800 |
commit | b95af84bf1b3423025aa6efb964b104fdc4b027d (patch) | |
tree | 5c70138a6fb8ee42ad30443bace59deffaa5cc6c | |
parent | 2b316fbc5ab424bf04f0b7aafab017551fd2b075 (diff) |
jme: use new helper tcp_v6_gso_csum_prep
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>
-rw-r--r-- | drivers/net/ethernet/jme.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c index 2e4975572e9f..de3c7ce9353c 100644 --- a/drivers/net/ethernet/jme.c +++ b/drivers/net/ethernet/jme.c @@ -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; |