Advertisement
Guest User

Untitled

a guest
Mar 9th, 2022
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.04 KB | None | 0 0
  1. diff --git a/lib/odp-util.c b/lib/odp-util.c
  2. index 9a705cffa..d1c263a2b 100644
  3. --- a/lib/odp-util.c
  4. +++ b/lib/odp-util.c
  5. @@ -7541,7 +7541,7 @@ parse_key_and_mask_to_match(const struct nlattr *key, size_t key_len,
  6.      enum odp_key_fitness fitness;
  7.  
  8.      fitness = odp_flow_key_to_flow(key, key_len, &match->flow, NULL);
  9. -    if (fitness) {
  10. +    if (fitness == ODP_FIT_ERROR) {
  11.          /* This should not happen: it indicates that
  12.           * odp_flow_key_from_flow() and odp_flow_key_to_flow() disagree on
  13.           * the acceptable form of a flow.  Log the problem as an error,
  14. @@ -7562,7 +7562,7 @@ parse_key_and_mask_to_match(const struct nlattr *key, size_t key_len,
  15.  
  16.      fitness = odp_flow_key_to_mask(mask, mask_len, &match->wc, &match->flow,
  17.                                     NULL);
  18. -    if (fitness) {
  19. +    if (fitness == ODP_FIT_ERROR) {
  20.          /* This should not happen: it indicates that
  21.           * odp_flow_key_from_mask() and odp_flow_key_to_mask()
  22.           * disagree on the acceptable form of a mask.  Log the problem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement