ofproto-dpif: Shortcut common case in rule_check().
authorJoe Stringer <joestringer@nicira.com>
Wed, 11 Nov 2015 19:39:51 +0000 (11:39 -0800)
committerJoe Stringer <joestringer@nicira.com>
Tue, 1 Dec 2015 23:29:01 +0000 (15:29 -0800)
commit11968381be82dcfbfdd0823b7aed35d3ee3c7048
tree9814a3de7f33def9a39d850724489caa4bb69e13
parent95619d8c3011254a65cdc72d83d0f3638167c264
ofproto-dpif: Shortcut common case in rule_check().

Typically the datapath will support all available features, so check
that first before attempting to retrieve various values out of a
minimask as the latter doesn't need to be checked if all fields are
supported.

ct_state is an exception, because support for the bits in this field is
not binary; only some bits are defined so far, so they must still be
checked against the current known supported bits.

Suggested-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
ofproto/ofproto-dpif.c