aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r--drivers/net/bonding/bonding.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
index 921abacc6074..b8c2462577b7 100644
--- a/drivers/net/bonding/bonding.h
+++ b/drivers/net/bonding/bonding.h
@@ -260,6 +260,12 @@ static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)
260 return (struct bonding *)netdev_priv(slave->dev->master); 260 return (struct bonding *)netdev_priv(slave->dev->master);
261} 261}
262 262
263static inline bool bond_is_lb(const struct bonding *bond)
264{
265 return bond->params.mode == BOND_MODE_TLB
266 || bond->params.mode == BOND_MODE_ALB;
267}
268
263#define BOND_FOM_NONE 0 269#define BOND_FOM_NONE 0
264#define BOND_FOM_ACTIVE 1 270#define BOND_FOM_ACTIVE 1
265#define BOND_FOM_FOLLOW 2 271#define BOND_FOM_FOLLOW 2