bonding: add and use bond_is_lb()
authorHolger Eitzenberger <holger@eitzenberger.org>
Wed, 10 Dec 2008 07:07:13 +0000 (23:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2008 07:07:13 +0000 (23:07 -0800)
commit58402054264fa33b405d1abcbcd8e528507aac1a
treea3e4ce7ecdb33402d0810113e339d517b609e0b8
parent512bb43eb5422ee69a1be05ea0d89dc074fac9a2
bonding: add and use bond_is_lb()

Introduce and use bond_is_lb(), it is usefull to shorten the repetitive
check for either ALB or TLB mode.

Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h