[ovs-dev] [PATCH] Fix openvswitch: netlink: Key attribute has unexpected length (type=62, length=4, expected=0) messages.

Madhu Challa challa at noironetworks.com
Wed May 28 18:48:32 UTC 2014


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 <challa at noironetworks.com>
---
 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140528/ed3931bd/attachment-0005.html>


More information about the dev mailing list