]> git.karo-electronics.de Git - karo-tx-linux.git/commit
openvswitch: Reset upper layer protocol info on internal devices.
authorJesse Gross <jesse@nicira.com>
Fri, 25 May 2012 18:29:30 +0000 (11:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:38:57 +0000 (10:38 -0700)
commit2ae5c3271419d2f294b2caf00aed7ac1f50760a6
tree755d5a72013d57060f4c59b6b53596ef95e529c4
parenta1c5f84b226548a62f9a78d491d777a8f1dbd5c6
openvswitch: Reset upper layer protocol info on internal devices.

[ Upstream commit 7fe99e2d434eafeac0c57b279a77e5de39212636 ]

It's possible that packets that are sent on internal devices (from
the OVS perspective) have already traversed the local IP stack.
After they go through the internal device, they will again travel
through the IP stack which may get confused by the presence of
existing information in the skb. The problem can be observed
when switching between namespaces. This clears out that information
to avoid problems but deliberately leaves other metadata alone.
This is to provide maximum flexibility in chaining together OVS
and other Linux components.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/openvswitch/vport-internal_dev.c