Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/odp-util.c b/lib/odp-util.c
- index 9a705cffa..d1c263a2b 100644
- --- a/lib/odp-util.c
- +++ b/lib/odp-util.c
- @@ -7541,7 +7541,7 @@ parse_key_and_mask_to_match(const struct nlattr *key, size_t key_len,
- enum odp_key_fitness fitness;
- fitness = odp_flow_key_to_flow(key, key_len, &match->flow, NULL);
- - if (fitness) {
- + if (fitness == ODP_FIT_ERROR) {
- /* This should not happen: it indicates that
- * odp_flow_key_from_flow() and odp_flow_key_to_flow() disagree on
- * the acceptable form of a flow. Log the problem as an error,
- @@ -7562,7 +7562,7 @@ parse_key_and_mask_to_match(const struct nlattr *key, size_t key_len,
- fitness = odp_flow_key_to_mask(mask, mask_len, &match->wc, &match->flow,
- NULL);
- - if (fitness) {
- + if (fitness == ODP_FIT_ERROR) {
- /* This should not happen: it indicates that
- * odp_flow_key_from_mask() and odp_flow_key_to_mask()
- * disagree on the acceptable form of a mask. Log the problem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement