summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-11-30 13:21:31 +0100
committerJesse Gross <jesse@nicira.com>2014-01-07 00:52:06 +0100
commitaae9f0e22c07f6b97752741156ac0b3637d37a1a (patch)
tree164aafabd87e384e55527a37ab67761ef7473c86 /net/openvswitch
parentgenl: Add genlmsg_new_unicast() for unicast message allocation (diff)
downloadlinux-aae9f0e22c07f6b97752741156ac0b3637d37a1a.tar.xz
linux-aae9f0e22c07f6b97752741156ac0b3637d37a1a.zip
netlink: Avoid netlink mmap alloc if msg size exceeds frame size
An insufficent ring frame size configuration can lead to an unnecessary skb allocation for every Netlink message. Check frame size before taking the queue lock and allocating the skb and re-check with lock to be safe. Signed-off-by: Thomas Graf <tgraf@suug.ch> Reviewed-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions