diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-08-19 17:40:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-20 16:34:49 +0300 |
commit | 860fe1f87eca4a2dad9ef8a703f2d046db43c2bb (patch) | |
tree | 6a5f24642eb02efab99b2d8ad063eba5d0f93d7c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d52ef12f7d6c016f3b249db95af33f725e3dd065 (diff) | |
download | linux-860fe1f87eca4a2dad9ef8a703f2d046db43c2bb.tar.xz |
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 <vladimir.oltean@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions