• Lorenzo Bianconi's avatar
    net: ip_gre: do not report erspan_ver for gre or gretap · 2bdf700e
    Lorenzo Bianconi authored
    Report erspan version field to userspace in ipgre_fill_info just for
    erspan tunnels. The issue can be triggered with the following reproducer:
    $ip link add name gre1 type gre local remote
    $ip link set dev gre1 up
    $ip -d link sh gre1
    13: gre1@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1476 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
        link/gre peer promiscuity 0 minmtu 0 maxmtu 0
        gre remote local ttl inherit erspan_ver 0 addrgenmode eui64 numtxqueues 1 numrxqueues 1
    Fixes: f551c91d ("net: erspan: introduce erspan v2 for ip_gre")
    Signed-off-by: default avatarLorenzo Bianconi <lorenzo.bianconi@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
ip_gre.c 44.9 KB