From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3 3/4] bonding: take queue spinlock in rx/tx burst functions Date: Fri, 9 Sep 2016 12:29:36 +0100 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "Doherty, Declan" , "Ananyev, Konstantin" To: Bernard Iremonger , "dev@dpdk.org" 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) In-Reply-To: <1465751489-10111-4-git-send-email-bernard.iremonger@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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