diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-05-19 23:00:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-23 01:37:32 +0200 |
commit | cfbed329beb2e44562c2c6b292142e3c9adc3203 (patch) | |
tree | 2b908f456593eab211f8a2b376de156be4affc38 /net/dsa/dsa_priv.h | |
parent | net: dsa: move port state setters (diff) | |
download | linux-cfbed329beb2e44562c2c6b292142e3c9adc3203.tar.xz linux-cfbed329beb2e44562c2c6b292142e3c9adc3203.zip |
net: dsa: move bridging routines
Move the DSA port code which bridges a port in port.c, where it belongs.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index cda218cd9b05..f0b6cd3c8a65 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -64,6 +64,8 @@ void dsa_legacy_unregister(void); int dsa_port_set_state(struct dsa_port *dp, u8 state, struct switchdev_trans *trans); void dsa_port_set_state_now(struct dsa_port *dp, u8 state); +int dsa_port_bridge_join(struct dsa_port *dp, struct net_device *br); +void dsa_port_bridge_leave(struct dsa_port *dp, struct net_device *br); /* slave.c */ extern const struct dsa_device_ops notag_netdev_ops; |