Skip to contentSkip to conversation

bonding:set save_load to 0 when initializing

PATCH Applied Weiping Pan(潘卫平) 3 participants 3 messages Apr 8, 2011 – Apr 11, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonding:set save_load to 0 when initializing

It is unnecessary to set save_load to 1 here,
as the tx_hashtbl is just kzalloced.

---
 drivers/net/bonding/bond_alb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bonding/bond_alb.c +1 -1
index 9bc5de3..ab69e5a 100644
@@ -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);
Signature · 1 line
1.7.4
#1 lore raw
Quoted 5 lines

It is unnecessary to set save_load to 1 here,
as the tx_hashtbl is just kzalloced.

I don't think this will cause any behavioral change, but I'll
grant is more correct in intent (there's no load information to save at this point).

Quoted 20 lines

---
drivers/net/bonding/bond_alb.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bonding/bond_alb.c +1 -1
index 9bc5de3..ab69e5a 100644
@@ -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);
Signature · 1 line
1.7.4
maintainer Applied
#2 lore raw

From: Jay Vosburgh <[email protected]>
Date: Mon, 11 Apr 2011 11:56:47 -0700

Quoted 11 lines
Quoted 5 lines

It is unnecessary to set save_load to 1 here,
as the tx_hashtbl is just kzalloced.

I don't think this will cause any behavioral change, but I'll
grant is more correct in intent (there's no load information to save at this point).

Applied.