summaryrefslogtreecommitdiffstats
path: root/include/net/rtnetlink.h
diff options
context:
space:
mode:
authorRocco Yue <rocco.yue@mediatek.com>2021-08-03 14:02:50 +0200
committerDavid S. Miller <davem@davemloft.net>2021-08-04 11:01:26 +0200
commit8679c31e0284aa3aaba038035e443180b5bacb99 (patch)
tree62e672e4e10faa37fc8108a95236b14327c7114e /include/net/rtnetlink.h
parentaf_unix: Add OOB support (diff)
downloadlinux-8679c31e0284aa3aaba038035e443180b5bacb99.tar.xz
linux-8679c31e0284aa3aaba038035e443180b5bacb99.zip
net: add extack arg for link ops
Pass extack arg to validate_linkmsg and validate_link_af callbacks. If a netlink attribute has a reject_message, use the extended ack mechanism to carry the message back to user space. Signed-off-by: Rocco Yue <rocco.yue@mediatek.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/rtnetlink.h')
-rw-r--r--include/net/rtnetlink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h
index 384e800665f2..9f48733bfd21 100644
--- a/include/net/rtnetlink.h
+++ b/include/net/rtnetlink.h
@@ -153,7 +153,8 @@ struct rtnl_af_ops {
u32 ext_filter_mask);
int (*validate_link_af)(const struct net_device *dev,
- const struct nlattr *attr);
+ const struct nlattr *attr,
+ struct netlink_ext_ack *extack);
int (*set_link_af)(struct net_device *dev,
const struct nlattr *attr,
struct netlink_ext_ack *extack);