datapath: Reset upper layer protocol info on internal devices.
authorJesse Gross <jesse@nicira.com>
Thu, 17 May 2012 18:43:15 +0000 (11:43 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 17 May 2012 19:54:03 +0000 (12:54 -0700)
commitd72599356040692dc5d949c9332274caef89fd92
tree309620967a1b4430f83c4e2f3338ebbeacf1811f
parentfcfa40f298159c7f981329320ff9469ba02c1626
datapath: 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.

Bug #10995

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c