net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new()
authorThomas Graf <tgraf@suug.ch>
Thu, 28 Jun 2012 03:57:45 +0000 (03:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 00:56:43 +0000 (17:56 -0700)
commit58050fce3530939372e6c2f4b4beb76fcb4caa65
treeee2b85eda9973fed36102dad66f583e43a4a6cab
parent9f10d3f6f966ef6f6a8d025a4b1d341923d04607
net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new()

Using NLMSG_GOODSIZE results in multiple pages being used as
nlmsg_new() will automatically add the size of the netlink
header to the payload thus exceeding the page limit.

NLMSG_DEFAULT_SIZE takes this into account.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Cc: Jiri Pirko <jpirko@redhat.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Sergey Lapin <slapin@ossfans.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
drivers/net/wireless/mac80211_hwsim.c
include/net/genetlink.h
net/ieee802154/netlink.c
net/ieee802154/nl-mac.c
net/ieee802154/nl-phy.c
net/l2tp/l2tp_netlink.c
net/nfc/netlink.c
net/wireless/nl80211.c