diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-02-18 23:09:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-19 22:20:59 +0300 |
commit | 06d4f968ac9db737d6e2fa25944460d632cf9c2a (patch) | |
tree | 5d64ebb84971358c2333cd9f1fca7c8788c13212 /drivers/net/ethernet/socionext | |
parent | 8518b3bcd4c17f91fcf2a8afbfc01f1edda38fd4 (diff) | |
download | linux-06d4f968ac9db737d6e2fa25944460d632cf9c2a.tar.xz |
net: socionext: 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>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext')
-rw-r--r-- | drivers/net/ethernet/socionext/netsec.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c index e8224b543dfc..6266926fe054 100644 --- a/drivers/net/ethernet/socionext/netsec.c +++ b/drivers/net/ethernet/socionext/netsec.c @@ -1148,11 +1148,7 @@ static netdev_tx_t netsec_netdev_start_xmit(struct sk_buff *skb, ~tcp_v4_check(0, ip_hdr(skb)->saddr, ip_hdr(skb)->daddr, 0); } else { - ipv6_hdr(skb)->payload_len = 0; - 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); } tx_ctrl.tcp_seg_offload_flag = true; |