• Thomas Graf's avatar
    net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new() · 58050fce
    Thomas Graf authored
    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: default avatarThomas 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: default avatarJiri Pirko <jpirko@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    58050fce
nl-phy.c 8.47 KB