Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352107
b: refs/heads/master
c: e185483
h: refs/heads/master
i:
  352105: 9397e10
  352103: 158ed73
v: v3
  • Loading branch information
Flavio Leitner authored and David S. Miller committed Feb 6, 2013
1 parent d2fa5fe commit c5ac31b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b72c2fe0c6bbec42ed7f899931daef227b80322
refs/heads/master: e185483e6b84c127d0b1c890b6b703701ae52d35
8 changes: 8 additions & 0 deletions trunk/drivers/net/team/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ static bool team_is_mode_set(struct team *team)

static void team_set_no_mode(struct team *team)
{
team->user_carrier_enabled = false;
team->mode = &__team_no_mode;
}

Expand Down Expand Up @@ -1710,6 +1711,10 @@ static netdev_features_t team_fix_features(struct net_device *dev,

static int team_change_carrier(struct net_device *dev, bool new_carrier)
{
struct team *team = netdev_priv(dev);

team->user_carrier_enabled = true;

if (new_carrier)
netif_carrier_on(dev);
else
Expand Down Expand Up @@ -2573,6 +2578,9 @@ static void __team_carrier_check(struct team *team)
struct team_port *port;
bool team_linkup;

if (team->user_carrier_enabled)
return;

team_linkup = false;
list_for_each_entry(port, &team->port_list, list) {
if (port->linkup) {
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/if_team.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ struct team {

const struct team_mode *mode;
struct team_mode_ops ops;
bool user_carrier_enabled;
bool queue_override_enabled;
struct list_head *qom_lists; /* array of queue override mapping lists */
long mode_priv[TEAM_MODE_PRIV_LONGS];
Expand Down

0 comments on commit c5ac31b

Please sign in to comment.