From patchwork Fri Apr 8 13:40:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UGV0ZXIgUGFuKOa9mOWNq+W5syk=?= X-Patchwork-Id: 90343 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8C731B6F80 for ; Fri, 8 Apr 2011 23:39:29 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756840Ab1DHNjJ (ORCPT ); Fri, 8 Apr 2011 09:39:09 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:51709 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756664Ab1DHNjI (ORCPT ); Fri, 8 Apr 2011 09:39:08 -0400 Received: by qwk3 with SMTP id 3so2093486qwk.19 for ; Fri, 08 Apr 2011 06:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=OjrJWSyPD3Zk4AgV2x8Bt0xvz4vskE/YfoVaAw503HQ=; b=M9JFzCV6FaPJbNq7JOSQfY6YvaZedN3g0dLrVwRiNYOAVQ4NvbXZRPSP1Ad1Z9rF86 YNSySHoH9wuhlwsvKoy6b/pXWFxBMJzkpwfjWHWqFWLYUvHfwHPSX79HXBIns8blXHvI yXJXg1y4VCvYV352aPcRwcTcMMFCceKRBTl+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=cDRyPD3uHIy0dXHE+/rstkMlZT3obw3pEGRfuJyI0dVtSBF/ZGuPVHYWL4Lz53zG2I O0Hs8DQZ4sTkE6cF9yatA+2UwlO7Xh6WBPloIlioH4iR1iN7Z5U6nc1DSzr0qv7q8b2q zK5dnM44LeYigT7V0RtcDaAMxhBqsWGv/B85s= Received: by 10.229.69.7 with SMTP id x7mr1773928qci.54.1302269947447; Fri, 08 Apr 2011 06:39:07 -0700 (PDT) Received: from localhost.localdomain.com ([60.247.97.98]) by mx.google.com with ESMTPS id g28sm1925224qck.15.2011.04.08.06.39.03 (version=SSLv3 cipher=OTHER); Fri, 08 Apr 2011 06:39:06 -0700 (PDT) From: =?UTF-8?q?Weiping=20Pan=28=E6=BD=98=E5=8D=AB=E5=B9=B3=29?= To: fubar@us.ibm.com, andy@greyhouse.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Weiping=20Pan (=E6=BD=98=E5=8D=AB=E5=B9=B3) ?= Subject: [PATCH] bonding:set save_load to 0 when initializing Date: Fri, 8 Apr 2011 21:40:19 +0800 Message-Id: <1302270019-11698-1-git-send-email-panweiping3@gmail.com> X-Mailer: git-send-email 1.7.4 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org It is unnecessary to set save_load to 1 here, as the tx_hashtbl is just kzalloced. Signed-off-by: Weiping Pan(潘卫平) Signed-off-by: Jay Vosburgh --- drivers/net/bonding/bond_alb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 9bc5de3..ab69e5a 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c @@ -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);