datapath: Call genlmsg_end in queue_userspace_packet
authorRich Lane <rlane@bigswitch.com>
Fri, 8 Feb 2013 23:29:56 +0000 (15:29 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 15 Feb 2013 18:55:26 +0000 (10:55 -0800)
Without genlmsg_end the upcall message ends (according to nlmsg_len) after the
struct ovs_header.

Signed-off-by: Rich Lane <rlane@bigswitch.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c

index 87c96ae..5d18def 100644 (file)
@@ -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: