[ovs-dev] [PATCH 3/7] lib/flow: Do not try to compress IPv6 flow label in miniflow_extract().

Jarno Rajahalme jrajahalme at nicira.com
Wed Oct 1 23:02:33 UTC 2014


Working with netdev_flow_keys is simpler when the key has the fields
present even when they are all-zeroes.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
 lib/flow.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/flow.c b/lib/flow.c
index a42895e..14a3350 100644
--- a/lib/flow.c
+++ b/lib/flow.c
@@ -467,7 +467,7 @@ miniflow_extract(struct ofpbuf *packet, const struct pkt_metadata *md,
         tc_flow = get_16aligned_be32(&nh->ip6_flow);
         {
             ovs_be32 label = tc_flow & htonl(IPV6_LABEL_MASK);
-            miniflow_push_be32_check(mf, ipv6_label, label);
+            miniflow_push_be32(mf, ipv6_label, label);
         }
 
         nw_tos = ntohl(tc_flow) >> 20;
-- 
1.7.10.4




More information about the dev mailing list