From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 194D85686 for ; Thu, 5 May 2016 17:38:48 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 05 May 2016 08:38:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,582,1455004800"; d="scan'208";a="799610005" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 05 May 2016 08:38:47 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u45FF4PX016502; Thu, 5 May 2016 16:15:04 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id u45FF4gj010044; Thu, 5 May 2016 16:15:04 +0100 Received: (from bairemon@localhost) by sivswdev01.ir.intel.com with id u45FF4Zc010039; Thu, 5 May 2016 16:15:04 +0100 From: Bernard Iremonger To: dev@dpdk.org Cc: declan.doherty@intel.com, Bernard Iremonger Date: Thu, 5 May 2016 16:14:55 +0100 Message-Id: <1462461300-9962-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH 0/5] bonding: locks X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2016 15:38:49 -0000 Replace spinlock with read/write lock. Add read/write locks where needed to protect active_slave_count and active_slaves[]. With read/write locks in place remove memcpy of slaves. Bernard Iremonger (5): bonding: replace spinlock with read/write lock bonding: add read/write lock to rx/tx burst functions bonding: remove memcopy of slaves from rx/tx burst function bonding: add read/write lock to stop function bonding: add read/write lock to the link_update function drivers/net/bonding/rte_eth_bond_api.c | 10 +- drivers/net/bonding/rte_eth_bond_pmd.c | 219 ++++++++++++++++------------- drivers/net/bonding/rte_eth_bond_private.h | 6 +- 3 files changed, 131 insertions(+), 104 deletions(-) -- 2.6.3