]> git.baikalelectronics.ru Git - kernel.git/commit
genl: Add genlmsg_new_unicast() for unicast message allocation
authorThomas Graf <tgraf@suug.ch>
Sat, 30 Nov 2013 12:21:30 +0000 (13:21 +0100)
committerJesse Gross <jesse@nicira.com>
Mon, 6 Jan 2014 23:51:53 +0000 (15:51 -0800)
commit6b2f96091e4a2afe3b7d54d4e509865ea42ca59f
tree02d730abd6f31752a842f8c1d9f30d62d185e0b2
parent94036a17fbfb4e1a51049157616580ce8825a0f7
genl: Add genlmsg_new_unicast() for unicast message allocation

Allocates a new sk_buff large enough to cover the specified payload
plus required Netlink headers. Will check receiving socket for
memory mapped i/o capability and use it if enabled. Will fall back
to non-mapped skb if message size exceeds the frame size of the ring.

Signed-of-by: Thomas Graf <tgraf@suug.ch>
Reviewed-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
include/net/genetlink.h
net/netlink/genetlink.c