]> git.baikalelectronics.ru Git - kernel.git/commit
net: erspan: fix erspan config overwrite
authorWilliam Tu <u9012063@gmail.com>
Mon, 5 Feb 2018 21:35:35 +0000 (13:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Feb 2018 16:32:49 +0000 (11:32 -0500)
commit82c7e3fcffb30027c47d9966ac7498dc8238944b
tree8d1d6ff983ddf133d915be19cf6e54c046b8849e
parent808549d35b703af8230d4f39e9ba185e7e6dc805
net: erspan: fix erspan config overwrite

When an erspan tunnel device receives an erpsan packet with different
tunnel metadata (ex: version, index, hwid, direction), existing code
overwrites the tunnel device's erspan configuration with the received
packet's metadata.  The patch fixes it.

Fixes: 575e64543169 ("gre: add collect_md mode to ERSPAN tunnel")
Fixes: c8f69224f1b5 ("net: erspan: introduce erspan v2 for ip_gre")
Fixes: 8dff97ed081d ("ip6_gre: add ip6 erspan collect_md mode")
Fixes: 2e5542ed6564 ("ip6_gre: add erspan v2 support")
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c