aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2018-11-22 23:29:57 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-23 18:02:24 -0800
commit52a227b30eba3ad4b8ac06ad187751ced0295c2a (patch)
treee5d68b74edd1e089dae8d30ebd518f2b76993068 /include/net/switchdev.h
parentswitchdev: Add helpers to aid traversal through lower devices (diff)
downloadlinux-dev-52a227b30eba3ad4b8ac06ad187751ced0295c2a.tar.xz
linux-dev-52a227b30eba3ad4b8ac06ad187751ced0295c2a.zip
mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_OBJ_ADD/_DEL
Following patches will change the way of distributing port object changes from a switchdev operation to a switchdev notifier. The switchdev code currently recursively descends through layers of lower devices, eventually calling the op on a front-panel port device. The notifier will instead be sent referencing the bridge port device, which may be a stacking device that's one of front-panel ports uppers, or a completely unrelated device. To handle SWITCHDEV_PORT_OBJ_ADD and _DEL, subscribe to the blocking notifier chain. Dispatch to mlxsw_sp_port_obj_add() resp. _del() to maintain the behavior that the switchdev operation based code currently has. Defer to switchdev_handle_port_obj_add() / _del() to handle the recursive descend, because mlxsw supports a number of upper types. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
0 files changed, 0 insertions, 0 deletions