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>
This commit is contained in:

committed by
David S. Miller

parent
e96a6e0275
commit
40ef2c9339
@@ -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 {
|
||||
|
Reference in New Issue
Block a user