openvswitch: Fix parsing invalid LLC/SNAP ethertypes
commit17b682a04841233f827073b327c6533e478dfcd4
authorRich Lane <rlane@bigswitch.com>
Tue, 19 Feb 2013 19:10:30 +0000 (19 11:10 -0800)
committerJesse Gross <jesse@nicira.com>
Sat, 23 Feb 2013 01:02:28 +0000 (22 17:02 -0800)
tree8ae17d165f5cec82ccf3d5a012c6fca3d585100f
parenta15ff76c955d17cf58313097e4a24124da022b1d
openvswitch: Fix parsing invalid LLC/SNAP ethertypes

Before this patch, if an LLC/SNAP packet with OUI 00:00:00 had an
ethertype less than 1536 the flow key given to userspace in the upcall
would contain the invalid ethertype (for example, 3). If userspace
attempted to insert a kernel flow for this key it would be rejected
by ovs_flow_from_nlattrs.

This patch allows OVS to pass the OFTest pktact.DirectBadLlcPackets.

Signed-off-by: Rich Lane <rlane@bigswitch.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/flow.c