Commit ed2da03c authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

team: forbid incorrect fall-through in notifier

There are two breaks missing there. The result is that userspace
receives multiple messages which might be confusing.

Introduced-by: 3d249d4c "net: introduce ethernet teaming device"
Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8ea2b17c
...@@ -2834,8 +2834,10 @@ static int team_device_event(struct notifier_block *unused, ...@@ -2834,8 +2834,10 @@ static int team_device_event(struct notifier_block *unused,
case NETDEV_UP: case NETDEV_UP:
if (netif_carrier_ok(dev)) if (netif_carrier_ok(dev))
team_port_change_check(port, true); team_port_change_check(port, true);
break;
case NETDEV_DOWN: case NETDEV_DOWN:
team_port_change_check(port, false); team_port_change_check(port, false);
break;
case NETDEV_CHANGE: case NETDEV_CHANGE:
if (netif_running(port->dev)) if (netif_running(port->dev))
team_port_change_check(port, team_port_change_check(port,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment