net: Add extack to nlmsg_parse
Make sure extack is passed to nlmsg_parse where easy to do so. Most of these are dump handlers and leveraging the extack in the netlink_callback. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Christian Brauner <christian@brauner.io> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3d0d4337d7
commit
dac9c9790e
@@ -2445,7 +2445,8 @@ static int neigh_dump_info(struct sk_buff *skb, struct netlink_callback *cb)
|
||||
((struct ndmsg *)nlmsg_data(nlh))->ndm_flags == NTF_PROXY)
|
||||
proxy = 1;
|
||||
|
||||
err = nlmsg_parse(nlh, sizeof(struct ndmsg), tb, NDA_MAX, NULL, NULL);
|
||||
err = nlmsg_parse(nlh, sizeof(struct ndmsg), tb, NDA_MAX, NULL,
|
||||
cb->extack);
|
||||
if (!err) {
|
||||
if (tb[NDA_IFINDEX]) {
|
||||
if (nla_len(tb[NDA_IFINDEX]) != sizeof(u32))
|
||||
|
Reference in New Issue
Block a user