From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 695413253 for ; Tue, 18 Jul 2017 15:43:58 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BEC3420A81; Tue, 18 Jul 2017 09:43:57 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 18 Jul 2017 09:43:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=pljhlGdvZfobrrI WKmdmOJks2yW3SjBMOKE3S2O/uv0=; b=cSJGLTh/wHVOux8QcpKqAg+RBaXO11a dx+TsGObPNo9663JePTMZSgsUaWXxbm1KTvgM2AVAFoFjCn67NCWmX7JuEn0qVZ6 lMnKMhX6k1J0f+ycqE3sn2tPxZ8EMAvsJKrE4HyUGVDbnaSD8pABBz+RB3eljIoF WiLvxXPmBBW8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=pljhlGdvZfobrrIWKmdmOJks2yW3SjBMOKE3S2O/uv0=; b=mrgKLo7X 5pjWEIJg8/UlcU+zBiDBzqfvCVrTFLp9pdrRMNn6d5+sCoGYbU8WM0CxHsdc98nQ KMdq+CzsIwT0RFpe1BWV+Lw2YogefKLVTbgV9tpkITulLzJe0I73lN8r9LUrKy3T 1TvtUDBURrRGME2OY+284AbaadhSBqIgzEjVhCcm7ZCVTzFR8rB/Ri4EJdGRG/IF VNR4iac953/if7Q8DwO3zAIypcMMu5xpJsNIJoBjBiH7HAmYghM27sshSIbZ501m fn+pDxLVEV4cE9l3zh5wi2rH6DcgwLdWyvAgIwHRZ4uzcZtdnAHe3v1RAlvG2I5+ 7GzYEFBQBMqZWQ== X-ME-Sender: X-Sasl-enc: ruqgo0TE78n+MsHhCSleuNzOyfOyXZvtDKXm8zRuOozx 1500385437 Received: from xps.localnet (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 5AC2C2418A; Tue, 18 Jul 2017 09:43:57 -0400 (EDT) From: Thomas Monjalon To: Jerin Jacob Cc: dev@dpdk.org, Hemant Agrawal , john.mcnamara@intel.com Date: Tue, 18 Jul 2017 16:43:55 +0300 Message-ID: <13765612.oLuGorxqyg@xps> In-Reply-To: References: <20170706062120.3895-1-jerin.jacob@caviumnetworks.com> <20170710165946.31080-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 ] ethdev: introduce lock-free txq capability flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 13:43:58 -0000 13/07/2017 15:02, Hemant Agrawal: > On 7/10/2017 10:29 PM, Jerin Jacob wrote: > > Introducing the DEV_TX_OFFLOAD_MT_LOCKFREE TX capability flag. > > if a PMD advertises DEV_TX_OFFLOAD_MT_LOCKFREE capable, multiple threads > > can invoke rte_eth_tx_burst() concurrently on the same tx queue without > > SW lock. This PMD feature will be useful in the following use cases and > > found in the OCTEON family of NPUs. > > > > 1) Remove explicit spinlock in some applications where lcores > > to TX queues are not mapped 1:1. > > example: OVS has such instance > > https://github.com/openvswitch/ovs/blob/master/lib/netdev-dpdk.c#L299 > > https://github.com/openvswitch/ovs/blob/master/lib/netdev-dpdk.c#L1859 > > See the the usage of tx_lock spinlock. > > > > 2) In the eventdev use case, avoid dedicating a separate TX core for > > transmitting and thus enables more scaling as all workers can > > send the packets. > > > > Signed-off-by: Jerin Jacob > > You may also like to add this capability in "doc/guides/nics/features/*.ini" I've just added the feature "Lock-free Tx queue" in features/default.ini. > Acked-by: Hemant Agrawal Applied, thanks