From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 79C4AA046B for ; Mon, 19 Aug 2019 12:47:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 694E11BE81; Mon, 19 Aug 2019 12:46:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 3123A1B994 for ; Mon, 19 Aug 2019 12:46:57 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7JAj88m007351 for ; Mon, 19 Aug 2019 03:46:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=cFNrKzIyM4MitqD5UCa25vKQKjmjbxxz+TqWCIsXFi8=; b=RCxs9iE1xWMEJob7qUMExXBU/A+FPClEXkBhxcWKuAgLuV6zc4GPvEvDdAJUEOBNkz0J NrRwTegYN7mjSgFFB0WgbRr/sHFrzGIMsaogj6GfmemN9BsoX4H4UWY8XCdREaEw+pAc 0r7MAzepP+LjZJtJBbULC/o6jAcLxSeRlhT5LReQw1bnQazliNbLgTzRtUK6cqgKRA2b MDYUzbHhazcHbMB7MPnU5ruPXk2RKYKyGWT3NSzo1BVS7qV/77qP8EZ+j/nnwATX+sJ2 3W9lgyEjYE6ZxXnDU16L8VJgnTYl5ZwrzfEISFC90DjjfkokQ0SwIg5IURTSMxvWRbGU JA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2ueh3hwkcf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 19 Aug 2019 03:46:56 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 19 Aug 2019 03:46:54 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Mon, 19 Aug 2019 03:46:54 -0700 Received: from BG-LT7430.marvell.com (bg-lt7430.marvell.com [10.28.10.255]) by maili.marvell.com (Postfix) with ESMTP id 6B5983F703F; Mon, 19 Aug 2019 03:46:53 -0700 (PDT) From: To: , Pavan Nikhilesh CC: Date: Mon, 19 Aug 2019 16:16:51 +0530 Message-ID: <20190819104652.797-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-19_02:2019-08-19,2019-08-19 signatures=0 Subject: [dpdk-dev] [PATCH ] event/octeontx2: fix Rx adapter capabilities 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Octeontx2 SSO co-processor allows multiple ethernet device Rx queues connected to a single Event device queue. Fix the Rx adapter capabilities to allow application to configure Rx queueus in n:1 ratio to event queues by adding `RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ` as a capability. Fixes: 37720fc1fba8 ("event/octeontx2: add Rx adapter") Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx2/otx2_evdev_adptr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/event/octeontx2/otx2_evdev_adptr.c b/drivers/event/octeontx2/otx2_evdev_adptr.c index b6e9f59d1..d8a06a593 100644 --- a/drivers/event/octeontx2/otx2_evdev_adptr.c +++ b/drivers/event/octeontx2/otx2_evdev_adptr.c @@ -15,7 +15,8 @@ otx2_sso_rx_adapter_caps_get(const struct rte_eventdev *event_dev, if (rc) *caps = RTE_EVENT_ETH_RX_ADAPTER_SW_CAP; else - *caps = RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT; + *caps = RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT | + RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ; return 0; } -- 2.22.0