]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: link_gre: Do not send ERSPAN attributes to GRE tunnels
authorPetr Machata <petrm@mellanox.com>
Fri, 3 Apr 2020 22:55:34 +0000 (01:55 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 13 Apr 2020 21:02:54 +0000 (14:02 -0700)
commit20927e0525e0cca165cd1252ac18da07cb082c4d
tree2d16970d983e2576fdeb80a1659fa8234073b6e9
parentc4dfddccef4e092065d7bb696d64bb46f4223567
ip: link_gre: Do not send ERSPAN attributes to GRE tunnels

In the commit referenced below, ip link started sending ERSPAN-specific
attributes even for GRE and gretap tunnels. Fix by more carefully
distinguishing between the GRE/tap and ERSPAN modes. Do not show
ERSPAN-related help in GRE/tap mode, likewise do not accept ERSPAN
arguments, or send ERSPAN attributes.

Fixes: 83c543af872e ("erspan: set erspan_ver to 1 by default")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/link_gre.c