diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-02-18 23:02:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-19 22:20:59 +0300 |
commit | 4c50efbaa59685e169dce6a3f1e38cbabd9cdfd5 (patch) | |
tree | be3891333b0e3f1860fa754a44c30fd57bcf9b42 /drivers/net/ethernet/cisco | |
parent | 51e6856c059b3d909bb417e274a723c8fa07c779 (diff) | |
download | linux-4c50efbaa59685e169dce6a3f1e38cbabd9cdfd5.tar.xz |
enic: 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/net/ethernet/cisco')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index ddf60dc9ad16..3fc858b2c87b 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -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); } } |