net: add extack arg for link ops
authorRocco Yue <rocco.yue@mediatek.com>
Tue, 3 Aug 2021 12:02:50 +0000 (20:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 09:01:26 +0000 (10:01 +0100)
commit8679c31e0284aa3aaba038035e443180b5bacb99
tree62e672e4e10faa37fc8108a95236b14327c7114e
parent314001f0bf927015e459c9d387d62a231fe93af3
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>
include/net/rtnetlink.h
net/core/rtnetlink.c
net/ipv4/devinet.c
net/ipv6/addrconf.c