lib/match: Do not format undefined fields.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 1 Oct 2014 22:35:45 +0000 (15:35 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 6 Oct 2014 22:33:37 +0000 (15:33 -0700)
commit78c9486d863bf78b6447e104356fb133fc43f400
tree5a47d90d5756c19bd04974ab203b5cf949d10180
parent7f8350b09dc23d73dd5727df2a42c48b4a5568f2
lib/match: Do not format undefined fields.

Add function flow_wildcards_init_for_packet() that can be used to set
sensible wildcards when megaflows are disabled.  Before this, we set
all the mask bits to ones, which caused printing tunnel, mpls, and/or
transport port fields even for packets for which it makes no sense.

This has the side effect of generating different megaflow masks for
different packet types, so there will be more than one kind of mask in
the datapath classifier.  This should not make practical difference,
as megaflows should not be disabled when performance is important.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/flow.c
lib/flow.h
lib/match.c
ofproto/ofproto-dpif-upcall.c
tests/dpif-netdev.at
tests/ofp-print.at
tests/ofproto-dpif.at
tests/ofproto.at
tests/vlan-splinters.at