Skip to content

Commit

Permalink
rocker: mark STP update as 'no wait' processing
Browse files Browse the repository at this point in the history
We can get STP updates from the bridge driver in atomic and non-atomic
contexts.  Since we can't test what context we're getting called in,
do the STP processing as 'no wait', which will cover all cases.

Signed-off-by: Scott Feldman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
scottfeldman authored and davem330 committed Jun 15, 2015
1 parent 02a9fbf commit ac28393
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/rocker/rocker.c
Original file line number Diff line number Diff line change
Expand Up @@ -4286,7 +4286,8 @@ static int rocker_port_attr_set(struct net_device *dev,

switch (attr->id) {
case SWITCHDEV_ATTR_PORT_STP_STATE:
err = rocker_port_stp_update(rocker_port, attr->trans, 0,
err = rocker_port_stp_update(rocker_port, attr->trans,
ROCKER_OP_FLAG_NOWAIT,
attr->u.stp_state);
break;
case SWITCHDEV_ATTR_PORT_BRIDGE_FLAGS:
Expand Down

0 comments on commit ac28393

Please sign in to comment.