diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-02-18 20:59:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-19 11:20:59 -0800 |
commit | 4d4c3783d8968a5fc25ef225a938bc9d47966aba (patch) | |
tree | 58d8a8c48a8d86af4f38154ac5f8a58938553889 /drivers/net/ethernet/atheros/atl1c/atl1c_main.c | |
parent | 8b19c68c4ffeebbb84cdb0afe4205500c25d3d88 (diff) | |
download | linux-4d4c3783d8968a5fc25ef225a938bc9d47966aba.tar.gz linux-4d4c3783d8968a5fc25ef225a938bc9d47966aba.tar.bz2 linux-4d4c3783d8968a5fc25ef225a938bc9d47966aba.zip |
net: atheros: 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/atheros/atl1c/atl1c_main.c')
-rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 4c0b1f8551dd..0d67b951c0b2 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -2025,10 +2025,8 @@ static int atl1c_tso_csum(struct atl1c_adapter *adapter, "IPV6 tso with zero data??\n"); goto check_sum; } else - 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); + etpd->word1 |= 1 << TPD_LSO_EN_SHIFT; etpd->word1 |= 1 << TPD_LSO_VER_SHIFT; etpd->pkt_len = cpu_to_le32(skb->len); |