]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f56d27b7978dfa9a438fed885186c204d8912c8
tree76b2354dbf9970e551da74ea76d7af760074d50e
parent11fb1ff74b0d6846669be9d4652dd277089b67c6
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