gre,ip6tnl/tunnel: Fix noencap- support
We must clear bit, not set all but given bit. Fixes:858dbb208e("ip link: Add support for remote checksum offload to IP tunnels") Fixes:73516e128a("ip6tnl: Support for fou encapsulation" Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
This commit is contained in:
parent
08ede25fda
commit
147ade01b0
|
|
@ -281,11 +281,11 @@ get_failed:
|
|||
} else if (strcmp(*argv, "encap-udp6-csum") == 0) {
|
||||
encapflags |= TUNNEL_ENCAP_FLAG_CSUM6;
|
||||
} else if (strcmp(*argv, "noencap-udp6-csum") == 0) {
|
||||
encapflags |= ~TUNNEL_ENCAP_FLAG_CSUM6;
|
||||
encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM6;
|
||||
} else if (strcmp(*argv, "encap-remcsum") == 0) {
|
||||
encapflags |= TUNNEL_ENCAP_FLAG_REMCSUM;
|
||||
} else if (strcmp(*argv, "noencap-remcsum") == 0) {
|
||||
encapflags |= ~TUNNEL_ENCAP_FLAG_REMCSUM;
|
||||
encapflags &= ~TUNNEL_ENCAP_FLAG_REMCSUM;
|
||||
} else if (strcmp(*argv, "external") == 0) {
|
||||
metadata = 1;
|
||||
} else if (strcmp(*argv, "ignore-df") == 0) {
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ get_failed:
|
|||
} else if (strcmp(*argv, "encap-remcsum") == 0) {
|
||||
encapflags |= TUNNEL_ENCAP_FLAG_REMCSUM;
|
||||
} else if (strcmp(*argv, "noencap-remcsum") == 0) {
|
||||
encapflags |= ~TUNNEL_ENCAP_FLAG_REMCSUM;
|
||||
encapflags &= ~TUNNEL_ENCAP_FLAG_REMCSUM;
|
||||
} else if (strcmp(*argv, "external") == 0) {
|
||||
metadata = 1;
|
||||
} else
|
||||
|
|
|
|||
Loading…
Reference in New Issue