mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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:
parent
f2fbd0aacd
commit
3583a4e8d7
4 changed files with 31 additions and 10 deletions
|
@ -2863,7 +2863,7 @@ static int do_setlink(const struct sk_buff *skb,
|
|||
|
||||
BUG_ON(!(af_ops = rtnl_af_lookup(nla_type(af))));
|
||||
|
||||
err = af_ops->set_link_af(dev, af);
|
||||
err = af_ops->set_link_af(dev, af, extack);
|
||||
if (err < 0) {
|
||||
rcu_read_unlock();
|
||||
goto errout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue