summaryrefslogtreecommitdiff
path: root/lib/meta-flow.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-08-29 11:30:13 -0700
committerBen Pfaff <blp@ovn.org>2019-01-15 16:59:37 -0800
commit4e413ac88d4841d7e17de3e36bba3fa12796e938 (patch)
treef2b60dfccac0bec0393e261721cfa78f99458a98 /lib/meta-flow.c
parentd1a227ecef81773a748320cee733334d21b484ce (diff)
downloadopenvswitch-4e413ac88d4841d7e17de3e36bba3fa12796e938.tar.gz
ovs-vswitchd: Implement OFPT_TABLE_FEATURES table modification request.
This allows a controller to change the name of OpenFlow flow tables in the OVS software switch. CC: Brad Cowie <brad@cowie.nz> Acked-by: Justin Pettit <jpettit@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/meta-flow.c')
-rw-r--r--lib/meta-flow.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/meta-flow.c b/lib/meta-flow.c
index b6d9e92b6..bc48d6304 100644
--- a/lib/meta-flow.c
+++ b/lib/meta-flow.c
@@ -3528,3 +3528,12 @@ mf_vl_mff_mf_from_nxm_header(uint32_t header,
mf_vl_mff_set_tlv_bitmap(*field, tlv_bitmap);
return 0;
}
+
+/* Returns true if the 1-bits in 'super' are a superset of the 1-bits in 'sub',
+ * false otherwise. */
+bool
+mf_bitmap_is_superset(const struct mf_bitmap *super,
+ const struct mf_bitmap *sub)
+{
+ return bitmap_is_superset(super->bm, sub->bm, MFF_N_IDS);
+}