[ovs-dev] [PATCH] datapath: Bug fix: Missing mask attributes

Andy Zhou azhou at nicira.com
Fri Jun 21 06:38:15 UTC 2013

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

Reported-by: Justin Pettit <jpettit at nicira.com>
Signed-off-by: Andy Zhou <azhou at 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;

More information about the dev mailing list