Skip to content

Commit

Permalink
bonding:set save_load to 0 when initializing
Browse files Browse the repository at this point in the history
It is unnecessary to set save_load to 1 here,
as the tx_hashtbl is just kzalloced.

Signed-off-by: Weiping Pan(潘卫平) <panweiping3@gmail.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Peter Pan(潘卫平) authored and David S. Miller committed Apr 11, 2011
1 parent a08070a commit 38dbaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static int tlb_initialize(struct bonding *bond)
bond_info->tx_hashtbl = new_hashtbl;

for (i = 0; i < TLB_HASH_TABLE_SIZE; i++) {
tlb_init_table_entry(&bond_info->tx_hashtbl[i], 1);
tlb_init_table_entry(&bond_info->tx_hashtbl[i], 0);
}

_unlock_tx_hashtbl(bond);
Expand Down

0 comments on commit 38dbaf0

Please sign in to comment.