* The lvalue should be an MPLS Label Stack Entry not Label Stack.
* The rvalue should be be

This resolves a small problem in "Alternate approach to MPLS"

Signed-off-by: Simon Horman <ho...@verge.net.au>
---
 lib/odp-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/odp-util.c b/lib/odp-util.c
index 0cb1250..84272fa 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -2827,7 +2827,7 @@ parse_l2_5_onward(const struct nlattr 
*attrs[OVS_KEY_ATTR_MAX + 1],
                 return ODP_FIT_TOO_LITTLE;
             }
         } else if (present_attrs & (UINT64_C(1) << OVS_KEY_ATTR_MPLS)) {
-            if (flow->mpls_lse != 0 && flow->dl_type != htons(0xffff)) {
+            if (flow->mpls_lse[0] != htonl(0) && flow->dl_type != 
htons(0xffff)) {
                 return ODP_FIT_ERROR;
             }
             expected_attrs |= (UINT64_C(1) << OVS_KEY_ATTR_MPLS);
-- 
1.8.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to