[ovs-dev] [PATCH 1/2] datapath: Call genlmsg_end in queue_userspace_packet

Rich Lane rich.lane at bigswitch.com
Fri Feb 8 23:29:56 UTC 2013


Without genlmsg_end the upcall message ends (according to nlmsg_len) after the
struct ovs_header.

Signed-off-by: Rich Lane <rlane at bigswitch.com>
---
 datapath/datapath.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/datapath/datapath.c b/datapath/datapath.c
index 87c96ae..5d18def 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -399,6 +399,7 @@ static int queue_userspace_packet(struct net *net, int dp_ifindex,
 
 	skb_copy_and_csum_dev(skb, nla_data(nla));
 
+	genlmsg_end(user_skb, upcall);
 	err = genlmsg_unicast(net, user_skb, upcall_info->portid);
 
 out:
-- 
1.7.9.5




More information about the dev mailing list