ofp-util: Simplify OpenFlow 1.0 ofp_match normalization.
authorBen Pfaff <blp@nicira.com>
Mon, 2 May 2011 18:46:17 +0000 (11:46 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 May 2011 21:45:52 +0000 (14:45 -0700)
commit34276a57908ddac57a1f7f67addad7896503055a
tree081805be36ff14e64a4a1581063ff68336b9e250
parentf1f41fb6b9ad166769fedacf66aca3b0364ced29
ofp-util: Simplify OpenFlow 1.0 ofp_match normalization.

The normalize_match() function does more work than really needed.  It goes
to some trouble to zero out fields that are wildcarded.  This is not
necessary, because cls_rule_from_match() will take care of it later.

Also make normalize_match() private to ofp-util.c, since it has no other
users now and I don't expect more later.

Reviewed-by: Simon Horman <horms@verge.net.au>
lib/ofp-util.c
lib/ofp-util.h