openvswitch: mpls: set network header correctly on key extract
authorJiri Benc <jbenc@redhat.com>
Fri, 30 Sep 2016 17:08:05 +0000 (19:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2016 06:00:21 +0000 (02:00 -0400)
commitf7d49bce8e741e1e6aa14ce4db1b6cea7e4be4e8
treecdd0b8382ee068c406dfee9b0f329cc2c5c46c33
parentab580705693d5af79663efa504a72248700766fc
openvswitch: mpls: set network header correctly on key extract

After the 48d2ab609b6b ("net: mpls: Fixups for GSO"), MPLS handling in
openvswitch was changed to have network header pointing to the start of the
MPLS headers and inner_network_header pointing after the MPLS headers.

However, key_extract was missed by the mentioned commit, causing incorrect
headers to be set when a MPLS packet just enters the bridge or after it is
recirculated.

Fixes: 48d2ab609b6b ("net: mpls: Fixups for GSO")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c