diff options
| author | Vladimir Oltean <[email protected]> | 2021-08-19 17:40:19 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-08-20 14:34:49 +0100 |
| commit | 860fe1f87eca4a2dad9ef8a703f2d046db43c2bb (patch) | |
| tree | 6a5f24642eb02efab99b2d8ad063eba5d0f93d7c /tools/perf/scripts/python/netdev-times.py | |
| parent | d52ef12f7d6c016f3b249db95af33f725e3dd065 (diff) | |
net: dpaa2-switch: call dpaa2_switch_port_disconnect_mac on probe error path
Currently when probing returns an error, the netdev is freed but
phylink_disconnect is not called.
Create a common function between the unbind path and the error path,
call it the opposite of dpaa2_switch_probe_port: dpaa2_switch_remove_port,
and call it from both the unbind and the error path.
Fixes: 84cba72956fd ("dpaa2-switch: integrate the MAC endpoint support")
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Ioana Ciornei <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions