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 DCFC842AF1; Thu, 18 May 2023 17:49:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD45D42D31; Thu, 18 May 2023 17:49:33 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 223C842BDA for ; Thu, 18 May 2023 17:49:32 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34IF1m4M016965 for ; Thu, 18 May 2023 08:49:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=iXlFMkptdIRCfqFVUOGdoGWIes9JZhl07RJ6P7Upvpw=; b=eTqKx6uOxK8KwORJYzV5tMpAWfh5EWCYTaMsMAfANAqKr1hBBII+KsE2hd0rftFeHYY0 eoedLqwqvfeR/75H7RdFnIXx9oroKfcI9kVBuFeAaPaetFJ1RJX2lNFOIK/bavTW5taL 6Q/MrGwaPhm1MIAipkmhmqEMOC8ZWdbwUJeGNUa5aRDCi2uvl0fYhsI6ORjI4BamtbjL mTuaaLIUcYUxwMXaGvG7x3Zvajk9WPiTIXCghM+Je1UONuTvtKKx11muGgP0nqQqhbfd s6Hx4yIcorooSr+OiguriLBYpCUOU9tEYbZZMz4rBxWbocNNkqNw8qPG8/Sxv1r/tA78 zg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3qmyexcpvp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 18 May 2023 08:49:31 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 18 May 2023 08:49:29 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 18 May 2023 08:49:29 -0700 Received: from localhost.localdomain (unknown [10.28.36.158]) by maili.marvell.com (Postfix) with ESMTP id B95463F7050; Thu, 18 May 2023 08:49:27 -0700 (PDT) From: Rahul Bhansali To: , Pavan Nikhilesh , "Shijith Thotton" CC: , Rahul Bhansali Subject: [PATCH v2 2/5] event/cnxk: set Rx offload flags Date: Thu, 18 May 2023 21:18:59 +0530 Message-ID: <20230518154902.2254743-2-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230518154902.2254743-1-rbhansali@marvell.com> References: <20230425104010.339177-1-rbhansali@marvell.com> <20230518154902.2254743-1-rbhansali@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: W47cFInEIKjKpKNdaXN770hbQ-X_mWZY X-Proofpoint-ORIG-GUID: W47cFInEIKjKpKNdaXN770hbQ-X_mWZY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_12,2023-05-17_02,2023-02-09_01 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 Configure event dev Rx offload flags with rx adapter start/stop callbacks. Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/event/cnxk/cnxk_eventdev_adptr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c b/drivers/event/cnxk/cnxk_eventdev_adptr.c index 5ec436382c..6d975362e8 100644 --- a/drivers/event/cnxk/cnxk_eventdev_adptr.c +++ b/drivers/event/cnxk/cnxk_eventdev_adptr.c @@ -331,9 +331,9 @@ int cnxk_sso_rx_adapter_start(const struct rte_eventdev *event_dev, const struct rte_eth_dev *eth_dev) { - RTE_SET_USED(event_dev); - RTE_SET_USED(eth_dev); - + struct cnxk_eth_dev *cnxk_eth_dev = eth_dev->data->dev_private; + struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev); + dev->rx_offloads |= cnxk_eth_dev->rx_offload_flags; return 0; } @@ -341,9 +341,9 @@ int cnxk_sso_rx_adapter_stop(const struct rte_eventdev *event_dev, const struct rte_eth_dev *eth_dev) { - RTE_SET_USED(event_dev); RTE_SET_USED(eth_dev); - + struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev); + dev->rx_offloads = 0; return 0; } -- 2.25.1