Lorenzo Bianconi 0a198e0bb8 net: ip_gre: use erspan key field for tunnel lookup
[ Upstream commit cb73ee40b1b381eaf3749e6dbeed567bb38e5258 ]

Use ERSPAN key header field as tunnel key in gre_parse_header routine
since ERSPAN protocol sets the key field of the external GRE header to
0 resulting in a tunnel lookup fail in ip6gre_err.
In addition remove key field parsing and pskb_may_pull check in
erspan_rcv and ip6erspan_rcv

Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-06 17:30:06 +01:00
..
2018-05-16 07:24:30 +02:00
2018-04-23 10:21:24 -04:00
2018-07-07 10:58:49 +09:00
2019-01-31 08:14:31 +01:00
2018-03-27 13:18:09 -04:00
2018-07-24 14:10:43 -07:00
2018-02-28 11:43:28 -05:00