diff options
author | Jiri Pirko <jpirko@redhat.com> | 2009-05-27 07:42:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-30 07:08:31 +0200 |
commit | ae63e808f508c38fe65e23a1480c85d5bd00ecbd (patch) | |
tree | 6d99401d326d13c648b23932e91e8daaa3344430 /drivers/net/bonding/bond_main.c | |
parent | cxgb3: add support for the Aquantia 10G-BT phy (diff) | |
download | linux-ae63e808f508c38fe65e23a1480c85d5bd00ecbd.tar.xz linux-ae63e808f508c38fe65e23a1480c85d5bd00ecbd.zip |
bonding: use bond_is_lb() when it's appropriate
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 92a9d69c5650..2f4329e91a4c 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2405,8 +2405,7 @@ static void bond_miimon_commit(struct bonding *bond) bond_3ad_handle_link_change(slave, BOND_LINK_DOWN); - if (bond->params.mode == BOND_MODE_TLB || - bond->params.mode == BOND_MODE_ALB) + if (bond_is_lb(bond)) bond_alb_handle_link_change(bond, slave, BOND_LINK_DOWN); |