diff options
author | Joe Stringer <joe@ovn.org> | 2017-07-18 15:32:44 -0700 |
---|---|---|
committer | Joe Stringer <joe@ovn.org> | 2017-07-19 14:34:18 -0700 |
commit | a8a3eee4920fa67cbb48b4c46476327db2d635f3 (patch) | |
tree | 4e1bdd2d0f62b0b3868ac327333ba3638c2ede67 /lib/dpif-netlink-rtnl.c | |
parent | 1ca5b61bfede9ed2252ab713cf0a32873541f379 (diff) | |
download | openvswitch-a8a3eee4920fa67cbb48b4c46476327db2d635f3.tar.gz |
dpif-netlink: For non-Ethernet, use Ethertype from packet_type.
For non-Ethernet flows, when fixing up the netlink message we need make
sure to pass down a valid Ethertype. The kernel does not understand
packet_type so it's implicitly encoded by the absence of _ETHERNET and
exact match of _ETHERTYPE. Without this change match_validate in the
kernel complains when trying to match packets from L3 tunnels.
e.g.
openvswitch: netlink: Unexpected mask (mask=110088, allowed=3d9804c)
The mask use to always be set in xlate_wc_init() and xlate_wc_finish(),
but that changed for non-Ethernet frames with the commit listed below.
Fixes: 3d4b2e6eb74e ("userspace: Add OXM field MFF_PACKET_TYPE")
Signed-off-by: Joe Stringer <joe@ovn.org>
Co-authored-by: Eric Garver <e@erig.me>
Acked-by: Eric Garver <e@erig.me>
Diffstat (limited to 'lib/dpif-netlink-rtnl.c')
0 files changed, 0 insertions, 0 deletions