bonding:set save_load to 0 when initializing
authorPeter Pan(潘卫平) <panweiping3@gmail.com>
Fri, 8 Apr 2011 03:40:19 +0000 (03:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2011 20:15:54 +0000 (13:15 -0700)
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>
drivers/net/bonding/bond_alb.c

index 9bc5de3e04a8375894e040cd3cb794a0fff5f90c..ab69e5afa3b2cb251ecbe0c06230dc7a0dc43429 100644 (file)
@@ -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);