These come from dpif_flow_put() in check_max_mpls_depth() when adding a
datapath. The key length is variable depending on number of MPLS labels. By
initializing to -1 kmod will not check for the key length.
Signed-off-by: Madhu Challa <[email protected]>
---
 datapath/flow_netlink.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c
index 803a94c..142d2a5 100644
--- a/datapath/flow_netlink.c
+++ b/datapath/flow_netlink.c
@@ -255,6 +255,7 @@ static const int ovs_key_lens[OVS_KEY_ATTR_MAX + 1] = {
        [OVS_KEY_ATTR_DP_HASH] = sizeof(u32),
        [OVS_KEY_ATTR_RECIRC_ID] = sizeof(u32),
        [OVS_KEY_ATTR_TUNNEL] = -1,
+        [OVS_KEY_ATTR_MPLS] = -1,
 };

 static bool is_all_zero(const u8 *fp, size_t size)
--
1.7.9.5
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to