diff options
Diffstat (limited to 'lib/meta-flow.c')
-rw-r--r-- | lib/meta-flow.c | 9 |
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); +} |