From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] ixgbe: fix multi-process support Date: Wed, 17 Dec 2014 01:02:13 +0100 Message-ID: <2018770.F7AcEz4Xgs@xps13> References: <533710CFB86FA344BFBF2D6802E60286C9D147@SHSMSX101.ccr.corp.intel.com> <3AEA2BF9852C6F48A459DA490692831FE4C138@IRSMSX109.ger.corp.intel.com> <20141211170720.GA11672@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Bruce Richardson Return-path: In-Reply-To: <20141211170720.GA11672@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2014-12-11 17:07, Bruce Richardson: > On Thu, Dec 11, 2014 at 04:58:42PM +0000, Pattan, Reshma wrote: > > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Bruce Richardson > > > When using multiple processes, the TX function used in all processes should be > > > the same, otherwise the secondary processes cannot transmit more than tx- > > > ring-size - 1 packets. > > > To achieve this, we extract out the code to select the ixgbe TX function to be > > > used into a separate function inside the ixgbe driver, and call that from a > > > secondary process when it is attaching to an already-configured NIC. > > > > > > Testing with symmetric MP app shows that we are able to RX and TX from both > > > primary and secondary processes once this patch is applied. > > > > > > Signed-off-by: Bruce Richardson > > > > > > ---- > > > V2 Changes: > > > * Moved check for primary/secondary process into set_tx_function instead > > > of ixgbe_txq_vec_setup, which reduces scope of diff. > > > * Added/cleaned up some code comments for this change > > > --- > > Acked-by: Reshma Pattan > > With comment " checkpatch shows whitespace errors which got copied from old code" > > Thomas, can you fix the whitespace problems when you apply, or do you want a V3? Applied with whitespace changes. Thanks -- Thomas