]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: make the STP state function return void
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 6 Apr 2016 15:55:03 +0000 (11:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 20:50:40 +0000 (16:50 -0400)
commit5212e9f03bf74ccfbc30ab35f98e7bb0cb6f157d
treef6d94e8a1a8b61bdf651bd1848961d6b1921ed07
parentc61a0f6fbdf24b7054d799d4d6ea35ac20db4924
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>
Documentation/networking/dsa/dsa.txt
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h
include/net/dsa.h
net/dsa/slave.c