]> 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)
commit81e55e8b5282d4265e748a9f8b711ea0db1dadb7
tree02d730abd6f31752a842f8c1d9f30d62d185e0b2
parentba9ae8b8d01dc569b40aba0f5b5db9992c2d5dff
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