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>
Showing
- Documentation/networking/dsa/dsa.txt 1 addition, 1 deletionDocumentation/networking/dsa/dsa.txt
- drivers/net/dsa/bcm_sf2.c 6 additions, 10 deletionsdrivers/net/dsa/bcm_sf2.c
- drivers/net/dsa/mv88e6171.c 1 addition, 1 deletiondrivers/net/dsa/mv88e6171.c
- drivers/net/dsa/mv88e6352.c 1 addition, 1 deletiondrivers/net/dsa/mv88e6352.c
- drivers/net/dsa/mv88e6xxx.c 2 additions, 4 deletionsdrivers/net/dsa/mv88e6xxx.c
- drivers/net/dsa/mv88e6xxx.h 1 addition, 1 deletiondrivers/net/dsa/mv88e6xxx.h
- include/net/dsa.h 2 additions, 2 deletionsinclude/net/dsa.h
- net/dsa/slave.c 15 additions, 17 deletionsnet/dsa/slave.c
Loading
Please register or sign in to comment