odp-util: New function odp_flow_key_to_mask().
authorGuolin Yang <gyang@nicira.com>
Tue, 20 Aug 2013 17:40:50 +0000 (10:40 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Aug 2013 23:58:52 +0000 (16:58 -0700)
commit4a2216156e6e1683848b400542297b01cceac401
tree43cb9d9228596b8482fd039cf57fd9151f82e5af
parent3f659b53262c07b47ed7b2e9d26ef94d1071b487
odp-util: New function odp_flow_key_to_mask().

With megaflow support, there is API to convert mask to nlattr key based
format.  This change introduces API to do the reverse conversion.  We
leverage the existing odp_flow_key_to_flow() API to reuse the code.

Signed-off-by: Guolin Yang <gyang@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/odp-util.c
lib/odp-util.h