]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcfabc8e12b367a8557e75a358fbf9782147fcdac
tree741909355e9359619927e90759c0f0d354c4680c
parentd46bba1383a25ad02449854d1131e7dd6731644f
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