From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EE874A0A02; Wed, 24 Mar 2021 10:16:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7027B4067B; Wed, 24 Mar 2021 10:16:01 +0100 (CET) Received: from mail-109-mta123.mxroute.com (mail-109-mta123.mxroute.com [136.175.109.123]) by mails.dpdk.org (Postfix) with ESMTP id 580004014F for ; Wed, 24 Mar 2021 10:16:00 +0100 (CET) Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-109-mta123.mxroute.com (ZoneMTA) with ESMTPSA id 1786384e9960004964.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 24 Mar 2021 09:15:58 +0000 X-Zone-Loop: 2c3e8ee60c6a786945f16fbaa2da2235b411056f92c9 X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ashroe.eu; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DmVjkwA2luPQA7Q6pvTMwUjOqU4Z0Mmm5zlR8bmpwTU=; b=ClvnfRdgdplNwd8sh00Z7TQxSe y6VrI4R2U1YjxATCGSGjdsP7Wb+T0hR8eI8vZ1L5iEg8Dube8c/iNK4yg9GygMcVFPYXf4vLk+Svk oOPzzIZ/ldBITdVUuzW5HtrtWiQB+BwGZ2bBAyY/MZaf5gp7SpmbZh/HXCD/0/hY1XWDO0WI08sIV XSdYQgoNyiC7uFxkUZ5lBESWV8FhnLF1b8WEpvqPY3WJnRv7OQKgDANAgb0qlR793OKpvhPkKCb7f HCCwA6ZA6PwrqRxNT5pX/AsZdCgDskLdAGltanEz8aL339UWjTwcWwO51GTJa4bZVPQKIdl98m70Q XTBAA83w==; To: pbhagavatula@marvell.com, jerinj@marvell.com, jay.jayatheerthan@intel.com, erik.g.carrillo@intel.com, abhinandan.gujjar@intel.com, timothy.mcdaniel@intel.com, hemant.agrawal@nxp.com, harry.van.haaren@intel.com, mattias.ronnblom@ericsson.com, liang.j.ma@intel.com, Neil Horman Cc: dev@dpdk.org References: <20210319205718.1436-1-pbhagavatula@marvell.com> <20210324050525.4489-1-pbhagavatula@marvell.com> <20210324050525.4489-3-pbhagavatula@marvell.com> From: "Kinsella, Ray" Message-ID: Date: Wed, 24 Mar 2021 09:15:54 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210324050525.4489-3-pbhagavatula@marvell.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AuthUser: mdr@ashroe.eu Subject: Re: [dpdk-dev] [PATCH v5 2/8] eventdev: introduce event vector Rx capability X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 24/03/2021 05:05, pbhagavatula@marvell.com wrote: > From: Pavan Nikhilesh > > Introduce event ethernet Rx adapter event vector capability. > > If an event eth Rx adapter has the capability of > RTE_EVENT_ETH_RX_ADAPTER_CAP_EVENT_VECTOR then a given Rx queue > can be configured to enable event vectorization by passing the > flag RTE_EVENT_ETH_RX_ADAPTER_QUEUE_EVENT_VECTOR to > rte_event_eth_rx_adapter_queue_conf::rx_queue_flags while configuring > Rx adapter through rte_event_eth_rx_adapter_queue_add(). > > The max vector size, vector timeout define the vector size and > mempool used for allocating vector event are configured through > rte_event_eth_rx_adapter_queue_add. The element size of the element > in the vector pool should be equal to > sizeof(struct rte_event_vector) + (vector_sz * sizeof(uintptr_t)) > > Application can use `rte_event_vector_pool_create` to create the > vector mempool used for > rte_event_eth_rx_adapter_queue_conf::vector_mp. > > The Rx adapter would be responsible for vectorizing the mbufs > based on the flow, the vector limits configured by the application > and add the vector event of mbufs to the event queue set via > rte_event_eth_rx_adapter_queue_conf::ev::queue_id. > It should also mark rte_event_vector::union_valid and fill > rte_event_vector::port, rte_event_vector::queue. > > Signed-off-by: Pavan Nikhilesh > Acked-by: Jerin Jacob > --- > .../prog_guide/event_ethernet_rx_adapter.rst | 38 ++++++ > lib/librte_eventdev/eventdev_pmd.h | 53 ++++++++ > .../rte_event_eth_rx_adapter.c | 114 ++++++++++++++++++ > .../rte_event_eth_rx_adapter.h | 105 ++++++++++++++++ > lib/librte_eventdev/rte_eventdev.h | 30 ++++- > lib/librte_eventdev/version.map | 2 + > 6 files changed, 340 insertions(+), 2 deletions(-) > Acked-by: Ray Kinsella