Skip to content

Commit

Permalink
openvswitch: Call genlmsg_end in queue_userspace_packet
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rich Lane authored and Jesse Gross committed Feb 23, 2013
1 parent cb7c5bd commit a15ff76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/openvswitch/datapath.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,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:
Expand Down

0 comments on commit a15ff76

Please sign in to comment.