net: core: dev: Add call_netdevice_notifiers_extack()
authorPetr Machata <petrm@mellanox.com>
Thu, 6 Dec 2018 17:05:45 +0000 (17:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 21:26:07 +0000 (13:26 -0800)
commit263726053400b9c6671df8e87d3db9728199da13
tree76b2354dbf9970e551da74ea76d7af760074d50e
parent6d0403216d030e5623de3911168fceeaac2e14d6
net: core: dev: Add call_netdevice_notifiers_extack()

In order to propagate extack through NETDEV_PRE_UP, add a new function
call_netdevice_notifiers_extack() that primes the extack field of the
notifier info. Convert call_netdevice_notifiers() to a simple wrapper
around the new function that passes NULL for extack.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c