diff options
author | Tom Herbert <therbert@google.com> | 2014-11-04 12:06:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-05 16:30:03 -0500 |
commit | e585f23636370320bc2071ca5ba2744ae37c3e51 (patch) | |
tree | c1d9d60bd084099f3e65155dd920ee72d41a808e /net/ipv4/tcp_offload.c | |
parent | 5024c33ac354577635c5671498891eb197f3ec4d (diff) |
udp: Changes to udp_offload to support remote checksum offload
Add a new GSO type, SKB_GSO_TUNNEL_REMCSUM, which indicates remote
checksum offload being done (in this case inner checksum must not
be offloaded to the NIC).
Added logic in __skb_udp_tunnel_segment to handle remote checksum
offload case.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_offload.c')
-rw-r--r-- | net/ipv4/tcp_offload.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c index 5b90f2f447a5..a1b2a5624f91 100644 --- a/net/ipv4/tcp_offload.c +++ b/net/ipv4/tcp_offload.c | |||
@@ -97,6 +97,7 @@ struct sk_buff *tcp_gso_segment(struct sk_buff *skb, | |||
97 | SKB_GSO_MPLS | | 97 | SKB_GSO_MPLS | |
98 | SKB_GSO_UDP_TUNNEL | | 98 | SKB_GSO_UDP_TUNNEL | |
99 | SKB_GSO_UDP_TUNNEL_CSUM | | 99 | SKB_GSO_UDP_TUNNEL_CSUM | |
100 | SKB_GSO_TUNNEL_REMCSUM | | ||
100 | 0) || | 101 | 0) || |
101 | !(type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)))) | 102 | !(type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)))) |
102 | goto out; | 103 | goto out; |