From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 008526CD1 for ; Fri, 9 Sep 2016 13:29:38 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 09 Sep 2016 04:29:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,304,1470726000"; d="scan'208";a="166206814" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.104]) ([10.237.220.104]) by fmsmga004.fm.intel.com with ESMTP; 09 Sep 2016 04:29:36 -0700 To: Bernard Iremonger , "dev@dpdk.org" References: <1464280727-25752-2-git-send-email-bernard.iremonger@intel.com> <1465751489-10111-1-git-send-email-bernard.iremonger@intel.com> <1465751489-10111-4-git-send-email-bernard.iremonger@intel.com> Cc: "Doherty, Declan" , "Ananyev, Konstantin" From: Ferruh Yigit Message-ID: Date: Fri, 9 Sep 2016 12:29:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1465751489-10111-4-git-send-email-bernard.iremonger@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 3/4] bonding: take queue spinlock in rx/tx burst functions 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: Fri, 09 Sep 2016 11:29:39 -0000 Hi Bernard, This is an old patch, sorry for commenting after this long. On 6/12/2016 6:11 PM, Bernard Iremonger wrote: > Use rte_spinlock_trylock() in the rx/tx burst functions to > take the queue spinlock. > > Signed-off-by: Bernard Iremonger > Acked-by: Konstantin Ananyev > --- ... > static uint16_t > @@ -143,8 +154,10 @@ bond_ethdev_rx_burst_8023ad(void *queue, struct rte_mbuf **bufs, > uint8_t i, j, k; > > rte_eth_macaddr_get(internals->port_id, &bond_mac); > - /* Copy slave list to protect against slave up/down changes during tx > - * bursting */ This piece, ... > for (i = 0; i < num_of_slaves; i++) { > - struct port *port = &mode_8023ad_ports[slaves[i]]; > + struct port *port; > + > + port = &mode_8023ad_ports[internals->active_slaves[i]]; And this piece seems needs to be moved into next patch in the patchset. ... And if you will send new version of the patchset, there are a few warnings from check-git-log.sh: Wrong headline prefix: bonding: remove memcpy from burst functions bonding: take queue spinlock in rx/tx burst functions bonding: grab queue spinlocks in slave add and remove bonding: add spinlock to rx and tx queues Wrong headline lowercase: bonding: take queue spinlock in rx/tx burst functions bonding: add spinlock to rx and tx queues Thanks, ferruh