Skip to content

Commit cbf5ecb

Browse files
Kosuke Tatsukawadavem330
authored andcommitted
net: bonding: Fix transmit load balancing in balance-alb mode
balance-alb mode used to have transmit dynamic load balancing feature enabled by default. However, transmit dynamic load balancing no longer works in balance-alb after commit 8b426dc ("bonding: remove hardcoded value"). Both balance-tlb and balance-alb use the function bond_do_alb_xmit() to send packets. This function uses the parameter tlb_dynamic_lb. tlb_dynamic_lb used to have the default value of 1 for balance-alb, but now the value is set to 0 except in balance-tlb. Re-enable transmit dyanmic load balancing by initializing tlb_dynamic_lb for balance-alb similar to balance-tlb. Fixes: 8b426dc ("bonding: remove hardcoded value") Signed-off-by: Kosuke Tatsukawa <[email protected]> Acked-by: Andy Gospodarek <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e623a48 commit cbf5ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4596,7 +4596,7 @@ static int bond_check_params(struct bond_params *params)
45964596
}
45974597
ad_user_port_key = valptr->value;
45984598

4599-
if (bond_mode == BOND_MODE_TLB) {
4599+
if ((bond_mode == BOND_MODE_TLB) || (bond_mode == BOND_MODE_ALB)) {
46004600
bond_opt_initstr(&newval, "default");
46014601
valptr = bond_opt_parse(bond_opt_get(BOND_OPT_TLB_DYNAMIC_LB),
46024602
&newval);

0 commit comments

Comments
 (0)