From 27ac36c954832cc051284e3cbd0355152d848d18 Mon Sep 17 00:00:00 2001 From: Jarno Rajahalme Date: Mon, 6 Oct 2014 14:12:57 -0700 Subject: [PATCH] lib/meta-flow: Index correct MPLS lse in mf_is_all_wild(). Should index the first lse for all parts of the lse (label, TC, BOS). Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff --- lib/meta-flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/meta-flow.c b/lib/meta-flow.c index 44fc2a95e..e28a00b8e 100644 --- a/lib/meta-flow.c +++ b/lib/meta-flow.c @@ -966,9 +966,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; -- 2.20.1