diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-02-18 23:13:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-19 22:21:00 +0300 |
commit | 091c9f82e52ad525c6c9f4b087e58f8d5d0f75f0 (patch) | |
tree | 869f8417a5142dec1579a0623690627234847f08 /drivers | |
parent | 2344120dd713122028abd434985351631ce4b2b0 (diff) | |
download | linux-091c9f82e52ad525c6c9f4b087e58f8d5d0f75f0.tar.xz |
vmxnet3: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_drv.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 18f152fa0068..722cb054a5cd 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -942,10 +942,7 @@ vmxnet3_prepare_tso(struct sk_buff *skb, tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, IPPROTO_TCP, 0); } else if (ctx->ipv6) { - struct ipv6hdr *iph = ipv6_hdr(skb); - - tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0, - IPPROTO_TCP, 0); + tcp_v6_gso_csum_prep(skb); } } |