diff options
Diffstat (limited to 'drivers/net/bonding/bond_alb.h')
-rw-r--r-- | drivers/net/bonding/bond_alb.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/bonding/bond_alb.h b/drivers/net/bonding/bond_alb.h index 28d8e4c7dc06..c5eff5dafdfe 100644 --- a/drivers/net/bonding/bond_alb.h +++ b/drivers/net/bonding/bond_alb.h | |||
@@ -36,14 +36,15 @@ struct slave; | |||
36 | * Used for division - never set | 36 | * Used for division - never set |
37 | * to zero !!! | 37 | * to zero !!! |
38 | */ | 38 | */ |
39 | #define BOND_ALB_LP_INTERVAL 1 /* In seconds, periodic send of | 39 | #define BOND_ALB_DEFAULT_LP_INTERVAL 1 |
40 | * learning packets to the switch | 40 | #define BOND_ALB_LP_INTERVAL(bond) (bond->params.lp_interval) /* In seconds, periodic send of |
41 | */ | 41 | * learning packets to the switch |
42 | */ | ||
42 | 43 | ||
43 | #define BOND_TLB_REBALANCE_TICKS (BOND_TLB_REBALANCE_INTERVAL \ | 44 | #define BOND_TLB_REBALANCE_TICKS (BOND_TLB_REBALANCE_INTERVAL \ |
44 | * ALB_TIMER_TICKS_PER_SEC) | 45 | * ALB_TIMER_TICKS_PER_SEC) |
45 | 46 | ||
46 | #define BOND_ALB_LP_TICKS (BOND_ALB_LP_INTERVAL \ | 47 | #define BOND_ALB_LP_TICKS(bond) (BOND_ALB_LP_INTERVAL(bond) \ |
47 | * ALB_TIMER_TICKS_PER_SEC) | 48 | * ALB_TIMER_TICKS_PER_SEC) |
48 | 49 | ||
49 | #define TLB_HASH_TABLE_SIZE 256 /* The size of the clients hash table. | 50 | #define TLB_HASH_TABLE_SIZE 256 /* The size of the clients hash table. |