netlink: Pass extack to dump handlers
authorDavid Ahern <dsahern@gmail.com>
Mon, 8 Oct 2018 03:16:22 +0000 (20:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:39:03 +0000 (10:39 -0700)
commit4a19edb60d0203cd5bf95a8b46ea8f63fd41194c
tree741909355e9359619927e90759c0f0d354c4680c
parent272a66173bbc300abbb10d013fd80bb7ba6f43f0
netlink: Pass extack to dump handlers

Declare extack in netlink_dump and pass to dump handlers via
netlink_callback. Add any extack message after the dump_done_errno
allowing error messages to be returned. This will be useful when
strict checking is done on dump requests, returning why the dump
fails EINVAL.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
net/netlink/af_netlink.c