diff options
| author | Petr Machata <[email protected]> | 2018-12-06 17:05:47 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-12-06 13:26:07 -0800 |
| commit | 40c900aa1ff580afe941ff77f327f004546f0ce7 (patch) | |
| tree | 1c995f3a70442b748ee8a9231f8047296ac9d7d9 /tools/perf/scripts/python/futex-contention.py | |
| parent | 263726053400b9c6671df8e87d3db9728199da13 (diff) | |
net: core: dev: Attach extack to NETDEV_PRE_UP
Drivers may need to validate configuration of a device that's about to
be upped. Should the validation fail, there's currently no way to
communicate details of the failure to the user, beyond an error number.
To mend that, change __dev_open() to take an extack argument and pass it
from __dev_change_flags() and dev_open(), where it was propagated in the
previous patches.
Change __dev_open() to call call_netdevice_notifiers_extack() so that
the passed-in extack is attached to the NETDEV_PRE_UP notifier.
Signed-off-by: Petr Machata <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions