diff options
author | Jesse Gross <jesse@nicira.com> | 2015-01-29 01:32:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-29 08:04:15 +0100 |
commit | b8693877ae016ac525d674d5d7a84ea0ea68ba60 (patch) | |
tree | 7ab9067c1c28bc829336a8d95736303f69d0bdea /net/openvswitch/vport-geneve.c | |
parent | Merge tag 'nfc-next-3.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
download | linux-b8693877ae016ac525d674d5d7a84ea0ea68ba60.tar.xz linux-b8693877ae016ac525d674d5d7a84ea0ea68ba60.zip |
openvswitch: Add support for checksums on UDP tunnels.
Currently, it isn't possible to request checksums on the outer UDP
header of tunnels - the TUNNEL_CSUM flag is ignored. This adds
support for requesting that UDP checksums be computed on transmit
and properly reported if they are present on receive.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/vport-geneve.c')
-rw-r--r-- | net/openvswitch/vport-geneve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/vport-geneve.c b/net/openvswitch/vport-geneve.c index 7ca3d454ff3b..bf02fd5808c9 100644 --- a/net/openvswitch/vport-geneve.c +++ b/net/openvswitch/vport-geneve.c @@ -212,7 +212,7 @@ static int geneve_tnl_send(struct vport *vport, struct sk_buff *skb) tun_key->ipv4_dst, tun_key->ipv4_tos, tun_key->ipv4_ttl, df, sport, dport, tun_key->tun_flags, vni, opts_len, opts, - false); + !!(tun_key->tun_flags & TUNNEL_CSUM), false); if (err < 0) ip_rt_put(rt); return err; |