tcp: move logic out of tcp_v[64]_gso_send_check
authorTom Herbert <therbert@google.com>
Sat, 20 Sep 2014 21:52:28 +0000 (14:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 04:22:46 +0000 (00:22 -0400)
commitd020f8f73318589bf41f864b7f89f95669350873
treed31c3e518fc4ea7dda9bacef18daa8d151f65a73
parent2fdbfea5735d3deb30a8782c57f7210cb034e69d
tcp: move logic out of tcp_v[64]_gso_send_check

In tcp_v[46]_gso_send_check the TCP checksum is initialized to the
pseudo header checksum using __tcp_v[46]_send_check. We can move this
logic into new tcp[46]_gso_segment functions to be done when
ip_summed != CHECKSUM_PARTIAL (ip_summed == CHECKSUM_PARTIAL should be
the common case, possibly always true when taking GSO path). After this
change tcp_v[46]_gso_send_check is no-op.

Signed-off-by: Tom Herbert <therbert@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_offload.c
net/ipv6/tcpv6_offload.c