ipv6: report errors for iftoken via netlink extack
Setting iftoken can fail for several different reasons but there and there was no report to user as to the cause. Add netlink extended errors to the processing of the request. This requires adding additional argument through rtnl_af_ops set_link_af callback. Reported-by: Hongren Zheng <li@zenithal.me> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f2fbd0aacd
commit
3583a4e8d7
@@ -147,8 +147,8 @@ struct rtnl_af_ops {
|
||||
int (*validate_link_af)(const struct net_device *dev,
|
||||
const struct nlattr *attr);
|
||||
int (*set_link_af)(struct net_device *dev,
|
||||
const struct nlattr *attr);
|
||||
|
||||
const struct nlattr *attr,
|
||||
struct netlink_ext_ack *extack);
|
||||
int (*fill_stats_af)(struct sk_buff *skb,
|
||||
const struct net_device *dev);
|
||||
size_t (*get_stats_af_size)(const struct net_device *dev);
|
||||
|
Reference in New Issue
Block a user