diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-03-30 23:37:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-01 21:22:57 +0200 |
commit | 40ef2c93395fcd25051643707d0956ce9120de41 (patch) | |
tree | 3e113df3919b44135380f31c46c35737496e10d3 /include/net | |
parent | net: dsa: mv88e6xxx: remap existing bridge members (diff) | |
download | linux-40ef2c93395fcd25051643707d0956ce9120de41.tar.xz linux-40ef2c93395fcd25051643707d0956ce9120de41.zip |
net: dsa: add cross-chip bridging operations
Introduce crosschip_bridge_{join,leave} operations in the dsa_switch_ops
structure, which can be used by switches supporting interconnection.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 951b5e49e899..ffe56cc338fe 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -456,6 +456,14 @@ struct dsa_switch_ops { bool ingress); void (*port_mirror_del)(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror); + + /* + * Cross-chip operations + */ + int (*crosschip_bridge_join)(struct dsa_switch *ds, int sw_index, + int port, struct net_device *br); + void (*crosschip_bridge_leave)(struct dsa_switch *ds, int sw_index, + int port, struct net_device *br); }; struct dsa_switch_driver { |