OSDN Git Service

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)
commitbb9b18fb55b03477fe5bdd3e97245d6d4d3dee4f
tree02d730abd6f31752a842f8c1d9f30d62d185e0b2
parent663efa3696232300a8ad3a46bb10482fc0b861cf
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