On Sat, 2014-09-20 at 14:52 -0700, Tom Herbert wrote:
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 <redacted>
---
net/ipv4/tcp_offload.c | 39 +++++++++++++++++++++++----------------
net/ipv6/tcpv6_offload.c | 37 ++++++++++++++++++++++++-------------
2 files changed, 47 insertions(+), 29 deletions(-)
Acked-by: Eric Dumazet <edumazet@google.com>