]> git.baikalelectronics.ru Git - kernel.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)
committerJesse Gross <jesse@nicira.com>
Fri, 25 May 2012 18:29:30 +0000 (11:29 -0700)
commit0a127cc0731df1f137f8bc70a800115ee4ccc01e
tree7648c2656ba21d500ba21f0f38b489e5643d0564
parentb038112005f11a788bad2ec13bdebe7812e43e51
openvswitch: Reset upper layer protocol info on internal devices.

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>
net/openvswitch/vport-internal_dev.c