diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-02-03 13:20:21 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-02-06 16:53:29 -0500 |
| commit | 04d3a4c6af52a58370795bc9f70dc15f51f8bb84 (patch) | |
| tree | 07ed46ceedeb980d62da34ae26e3aac5f8af7dfb /include | |
| parent | f515f192ab4f45bb695146b82432d63d98775787 (diff) | |
net: dsa: introduce bridge notifier
A slave device will now notify the switch fabric once its port is
bridged or unbridged, instead of calling directly its switch operations.
This code allows propagating cross-chip bridging events in the fabric.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index ac4ea7c3a102..e9c940c8936f 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
| @@ -268,6 +268,16 @@ struct switchdev_obj_port_fdb; | |||
| 268 | struct switchdev_obj_port_mdb; | 268 | struct switchdev_obj_port_mdb; |
| 269 | struct switchdev_obj_port_vlan; | 269 | struct switchdev_obj_port_vlan; |
| 270 | 270 | ||
| 271 | #define DSA_NOTIFIER_BRIDGE_JOIN 1 | ||
| 272 | #define DSA_NOTIFIER_BRIDGE_LEAVE 2 | ||
| 273 | |||
| 274 | /* DSA_NOTIFIER_BRIDGE_* */ | ||
| 275 | struct dsa_notifier_bridge_info { | ||
| 276 | struct net_device *br; | ||
| 277 | int sw_index; | ||
| 278 | int port; | ||
| 279 | }; | ||
| 280 | |||
| 271 | struct dsa_switch_ops { | 281 | struct dsa_switch_ops { |
| 272 | /* | 282 | /* |
| 273 | * Probing and setup. | 283 | * Probing and setup. |
