Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122567
b: refs/heads/master
c: 77afc92
h: refs/heads/master
i:
  122565: a4ad677
  122563: 5213fef
  122559: 2e4679d
v: v3
  • Loading branch information
Holger Eitzenberger authored and David S. Miller committed Dec 10, 2008
1 parent 95654aa commit 2001d48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58402054264fa33b405d1abcbcd8e528507aac1a
refs/heads/master: 77afc92b7915b6bb21584474a429a04603ac8963
30 changes: 13 additions & 17 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,24 +219,20 @@ static void bond_deinit(struct net_device *bond_dev);

static const char *bond_mode_name(int mode)
{
switch (mode) {
case BOND_MODE_ROUNDROBIN :
return "load balancing (round-robin)";
case BOND_MODE_ACTIVEBACKUP :
return "fault-tolerance (active-backup)";
case BOND_MODE_XOR :
return "load balancing (xor)";
case BOND_MODE_BROADCAST :
return "fault-tolerance (broadcast)";
case BOND_MODE_8023AD:
return "IEEE 802.3ad Dynamic link aggregation";
case BOND_MODE_TLB:
return "transmit load balancing";
case BOND_MODE_ALB:
return "adaptive load balancing";
default:
static const char *names[] = {
[BOND_MODE_ROUNDROBIN] = "load balancing (round-robin)",
[BOND_MODE_ACTIVEBACKUP] = "fault-tolerance (active-backup)",
[BOND_MODE_XOR] = "load balancing (xor)",
[BOND_MODE_BROADCAST] = "fault-tolerance (broadcast)",
[BOND_MODE_8023AD]= "IEEE 802.3ad Dynamic link aggregation",
[BOND_MODE_TLB] = "transmit load balancing",
[BOND_MODE_ALB] = "adaptive load balancing",
};

if (mode < 0 || mode > BOND_MODE_ALB)
return "unknown";
}

return names[mode];
}

/*---------------------------------- VLAN -----------------------------------*/
Expand Down

0 comments on commit 2001d48

Please sign in to comment.