Skip to content

Commit

Permalink
lib/meta-flow: Index correct MPLS lse in mf_is_all_wild().
Browse files Browse the repository at this point in the history
Should index the first lse for all parts of the lse (label, TC, BOS).

Signed-off-by: Jarno Rajahalme <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
Jarno Rajahalme committed Oct 6, 2014
1 parent 78c9486 commit 60df616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/meta-flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,9 +976,9 @@ mf_is_all_wild(const struct mf_field *mf, const struct flow_wildcards *wc)
case MFF_MPLS_LABEL:
return !(wc->masks.mpls_lse[0] & htonl(MPLS_LABEL_MASK));
case MFF_MPLS_TC:
return !(wc->masks.mpls_lse[1] & htonl(MPLS_TC_MASK));
return !(wc->masks.mpls_lse[0] & htonl(MPLS_TC_MASK));
case MFF_MPLS_BOS:
return !(wc->masks.mpls_lse[2] & htonl(MPLS_BOS_MASK));
return !(wc->masks.mpls_lse[0] & htonl(MPLS_BOS_MASK));

case MFF_IPV4_SRC:
return !wc->masks.nw_src;
Expand Down

0 comments on commit 60df616

Please sign in to comment.