diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-04-06 17:55:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-08 22:50:40 +0200 |
commit | 43c44a9f655170fb92536167b95b1c6ae8b732cb (patch) | |
tree | f6d94e8a1a8b61bdf651bd1848961d6b1921ed07 /Documentation/networking/dsa | |
parent | net: dsa: document missing functions (diff) | |
download | linux-43c44a9f655170fb92536167b95b1c6ae8b732cb.tar.xz linux-43c44a9f655170fb92536167b95b1c6ae8b732cb.zip |
net: dsa: make the STP state function return void
The DSA layer doesn't care about the return code of the port_stp_update
routine, so make it void in the layer and the DSA drivers.
Replace the useless dsa_slave_stp_update function with a
dsa_slave_stp_state function used to reply to the switchdev
SWITCHDEV_ATTR_ID_PORT_STP_STATE attribute.
In the meantime, rename port_stp_update to port_stp_state_set to
explicit the state change.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/dsa')
-rw-r--r-- | Documentation/networking/dsa/dsa.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt index 013b67066b82..ba698c56919d 100644 --- a/Documentation/networking/dsa/dsa.txt +++ b/Documentation/networking/dsa/dsa.txt @@ -533,7 +533,7 @@ Bridge layer out at the switch hardware for the switch to (re) learn MAC addresses behind this port. -- port_stp_update: bridge layer function invoked when a given switch port STP +- port_stp_state_set: bridge layer function invoked when a given switch port STP state is computed by the bridge layer and should be propagated to switch hardware to forward/block/learn traffic. The switch driver is responsible for computing a STP state change based on current and asked parameters and perform |