net: qcom/emac: 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>
This commit is contained in:
parent
fa6b842952
commit
8518b3bcd4
|
@ -1288,11 +1288,8 @@ static int emac_tso_csum(struct emac_adapter *adpt,
|
|||
memset(tpd, 0, sizeof(*tpd));
|
||||
memset(&extra_tpd, 0, sizeof(extra_tpd));
|
||||
|
||||
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);
|
||||
|
||||
TPD_PKT_LEN_SET(&extra_tpd, skb->len);
|
||||
TPD_LSO_SET(&extra_tpd, 1);
|
||||
TPD_LSOV_SET(&extra_tpd, 1);
|
||||
|
|
Loading…
Reference in New Issue