Fix a bug where some mask attributes are missing in the netlink packets
from kernel to the user space.

Reported-by: Justin Pettit <jpet...@nicira.com>
Signed-off-by: Andy Zhou <az...@nicira.com>
---
 datapath/datapath.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datapath/datapath.c b/datapath/datapath.c
index a514e74..2ec1f5d 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -1156,7 +1156,7 @@ static int ovs_flow_cmd_fill_info(struct sw_flow *flow, 
struct datapath *dp,
        if (!nla)
                goto nla_put_failure;
 
-       err = ovs_flow_to_nlattrs(&flow->key,
+       err = ovs_flow_to_nlattrs(&flow->unmasked_key,
                        &ovsl_dereference(flow->mask)->key, skb);
        if (err)
                goto error;
-- 
1.7.9.5

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

Reply via email to