Re: [PATCH net-next] net: add extack arg for link ops

From: David Ahern
Date: Tue Aug 03 2021 - 10:32:53 EST


On 8/3/21 6:02 AM, Rocco Yue wrote:
> 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@xxxxxxxxxxxx>
> ---
> include/net/rtnetlink.h | 3 ++-
> net/core/rtnetlink.c | 9 +++++----
> net/ipv4/devinet.c | 5 +++--
> net/ipv6/addrconf.c | 5 +++--
> 4 files changed, 13 insertions(+), 9 deletions(-)
>

Reviewed-by: David Ahern <dsahern@xxxxxxxxxx>