diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2019-02-19 19:42:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-22 03:02:10 +0300 |
commit | 2bdf700e538828d6456150b9319e5f689b062d54 (patch) | |
tree | d01cbeb542782c1b30d14eb0f25800c04f06e656 /arch/riscv | |
parent | 9e8db5913264d3967b93c765a6a9e464d9c473db (diff) | |
download | linux-2bdf700e538828d6456150b9319e5f689b062d54.tar.xz |
net: ip_gre: do not report erspan_ver for gre or gretap
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 192.168.0.1 remote 192.168.1.1
$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 192.168.0.1 peer 192.168.1.1 promiscuity 0 minmtu 0 maxmtu 0
gre remote 192.168.1.1 local 192.168.0.1 ttl inherit erspan_ver 0 addrgenmode eui64 numtxqueues 1 numrxqueues 1
Fixes: f551c91de262 ("net: erspan: introduce erspan v2 for ip_gre")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/riscv')
0 files changed, 0 insertions, 0 deletions