diff options
author | Jiri Pirko <jpirko@redhat.com> | 2011-03-11 22:14:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 15:51:20 -0400 |
commit | e30bc066ab67a4c8abcb972227ffe7c576f06a86 (patch) | |
tree | 923689cd4ceade32c85d602a59b4e5feb320c300 /drivers/net/bonding/bond_3ad.c | |
parent | 0bd80dad57d82676ee484fb1f9aa4c5e8b5bc469 (diff) |
bonding: wrap slave state work
transfers slave->state into slave->backup (that it's going to transfer
into bitfield. Introduce wrapper inlines to do the work with it.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Reviewed-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_3ad.c')
-rw-r--r-- | drivers/net/bonding/bond_3ad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index a5d5d0b5b155..494bf960442d 100644 --- a/drivers/net/bonding/bond_3ad.c +++ b/drivers/net/bonding/bond_3ad.c | |||
@@ -246,7 +246,7 @@ static inline void __enable_port(struct port *port) | |||
246 | */ | 246 | */ |
247 | static inline int __port_is_enabled(struct port *port) | 247 | static inline int __port_is_enabled(struct port *port) |
248 | { | 248 | { |
249 | return port->slave->state == BOND_STATE_ACTIVE; | 249 | return bond_is_active_slave(port->slave); |
250 | } | 250 | } |
251 | 251 | ||
252 | /** | 252 | /** |