From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 33A749380 for ; Tue, 26 Jan 2016 21:19:11 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 26 Jan 2016 12:19:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,351,1449561600"; d="scan'208";a="641804827" Received: from bricha3-mobl3.ger.corp.intel.com ([10.34.202.20]) by FMSMGA003.fm.intel.com with SMTP; 26 Jan 2016 12:18:58 -0800 Received: by (sSMTP sendmail emulation); Tue, 26 Jan 2016 12:18:58 -0700 Date: Tue, 26 Jan 2016 12:18:58 -0800 From: Bruce Richardson To: Saurabh Mishra Message-ID: <20160126201857.GB10276@bricha3-MOBL3> References: <20160123160930.GA16304@bricha3-MOBL3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] DPDK mbuf pool in SR-IOV env and one RX/TX queue 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: Tue, 26 Jan 2016 20:19:11 -0000 On Mon, Jan 25, 2016 at 04:15:28PM -0800, Saurabh Mishra wrote: > Hi Bruce -- > > >The sharing of the mbuf pool is not an issue, but sharing of rx/tx queues > is. > >The ethdev queues are not multi-thread safe, so to share a queue between > processes > >or threads, you need to put in locks or other access control mechanisms. > [This > >also implies a performance hit due to the locking] > >Regards, > >/Bruce > > Right. So now we have only one process to do rx/tx on queue 0 if we detect > that max queue support is 1. > > However, we have noticed that if our process, which does rx/tx, is not > primary, then we can't transmit the packet out with SR-IOV. > > Is there any specific limitation on SR-IOV (the vf driver in dpdk) that > only primary process should receive and transmit packets? > > In our model, we have an agent process which monitor links and another > process which does packet processing. If we make our agent process as > primary then our secondary process is not able to send the packets -- > rte_eth_tx_burst() succeed but recipient does not receive the packet. > > Thanks, > /Saurabh There should be no restrictions on RX/TX from secondary processes. /Bruce