X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fclassifier.h;h=f626970c7063cd782354537565336fc668143968;hb=cf3fad8a1b633c7c4231edda04b0e56e67df0d91;hp=e178703c6f961e1dd4d49c059367966e31d56933;hpb=f9bfea1402fb4776e505eba7bb712c8355e01e70;p=openvswitch diff --git a/lib/classifier.h b/lib/classifier.h index e178703c..f626970c 100644 --- a/lib/classifier.h +++ b/lib/classifier.h @@ -55,8 +55,9 @@ struct cls_table { * invariant that the classifier depends on: * * - If a bit or a field is wildcarded in 'wc', then the corresponding bit or - * field in 'flow' is set to all-0-bits. (The cls_rule_zero_wildcards() - * function can be used to restore this invariant after adding wildcards.) + * field in 'flow' is set to all-0-bits. (The + * cls_rule_zero_wildcarded_fields() function can be used to restore this + * invariant after adding wildcards.) */ struct cls_rule { struct hmap_node hmap_node; /* Within struct cls_table 'rules'. */ @@ -76,8 +77,9 @@ void cls_rule_from_flow(const struct flow *, uint32_t wildcards, unsigned int priority, struct cls_rule *); void cls_rule_from_match(const struct ofp_match *, unsigned int priority, int flow_format, uint64_t cookie, struct cls_rule *); +void cls_rule_init_catchall(struct cls_rule *, unsigned int priority); -void cls_rule_zero_wildcards(struct cls_rule *); +void cls_rule_zero_wildcarded_fields(struct cls_rule *); char *cls_rule_to_string(const struct cls_rule *); void cls_rule_print(const struct cls_rule *);