From patchwork Thu Dec 14 14:33:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satheesh Paul Antonysamy X-Patchwork-Id: 135202 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D38B7436F0; Thu, 14 Dec 2023 15:33:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 133DB432D4; Thu, 14 Dec 2023 15:33:36 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 1574E432D4 for ; Thu, 14 Dec 2023 15:33:34 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BE9LR7J002199 for ; Thu, 14 Dec 2023 06:33:34 -0800 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=PdM3VjGZHfUe8ZZgSULV1AmWRogBmCbfV0oSWEalsDQ=; b=Zxg rfON2CS2n+PnqWfg/kvP/MWumbGXnofEDpnb6H3MI4ViQ56IvwlWOBycCIvqNwTa vqkVGtFztZaUNnx4DBatVTaU1iyPWZfe6NmiB/Uu3URu06UlZSgdnn7tvysj68aH DX9p0j+1W1+dP6tGa3SNxUIBmfnwuuU1Rfr/Kz5AVJpm6IU8hydwhglMuNpRlxcp n29uNnHGuPIippq5+M3a4MaC6QcSSA4ca+obYrufjG9VRz+AOZkwyZcXDxuHSPJz DX26wGwbRuSRBiim5mWWsnIj3TD+LNpM8Xp9H1rkpWNGoSZTVtjdB7+w4qJg2tFp /NVsOgCU+vt50epxHEQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uyy0m90an-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 14 Dec 2023 06:33:34 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 14 Dec 2023 06:33:32 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 14 Dec 2023 06:33:32 -0800 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 914A53F7088; Thu, 14 Dec 2023 06:33:30 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul Subject: [dpdk-dev] [PATCH v2 2/2] net/cnxk: support PPPoE flow item type Date: Thu, 14 Dec 2023 20:03:22 +0530 Message-ID: <20231214143322.571548-2-psatheesh@marvell.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231214143322.571548-1-psatheesh@marvell.com> References: <20231214071759.411405-1-psatheesh@marvell.com> <20231214143322.571548-1-psatheesh@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 64bi0rFuMMDyY-rVWUE6kgFOZWpv61K_ X-Proofpoint-ORIG-GUID: 64bi0rFuMMDyY-rVWUE6kgFOZWpv61K_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 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 From: Satheesh Paul Support to parse RTE_FLOW_ITEM_TYPE_PPPOES rte_flow item type for cnxk device. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + doc/guides/rel_notes/release_24_03.rst | 3 +++ drivers/net/cnxk/cnxk_flow.c | 7 ++++--- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/features/cnxk.ini b/doc/guides/nics/features/cnxk.ini index ac7de9a0f0..cc7deaeaa9 100644 --- a/doc/guides/nics/features/cnxk.ini +++ b/doc/guides/nics/features/cnxk.ini @@ -71,6 +71,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y diff --git a/doc/guides/nics/features/cnxk_vec.ini b/doc/guides/nics/features/cnxk_vec.ini index e2cac64e4b..6086b3d73f 100644 --- a/doc/guides/nics/features/cnxk_vec.ini +++ b/doc/guides/nics/features/cnxk_vec.ini @@ -65,6 +65,7 @@ ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y diff --git a/doc/guides/nics/features/cnxk_vf.ini b/doc/guides/nics/features/cnxk_vf.ini index b03e8b35c3..53aa2a3d0c 100644 --- a/doc/guides/nics/features/cnxk_vf.ini +++ b/doc/guides/nics/features/cnxk_vf.ini @@ -62,6 +62,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst index 41b0eb8f1d..866dd60fbf 100644 --- a/doc/guides/rel_notes/release_24_03.rst +++ b/doc/guides/rel_notes/release_24_03.rst @@ -62,6 +62,9 @@ New Features * Added optimized SSE Rx routines. * Added optimized AVX2 Rx routines. +* **Updated Marvell cnxk net driver.** + + * Added support for ``RTE_FLOW_ITEM_TYPE_PPPOES`` flow item. Removed Items ------------- diff --git a/drivers/net/cnxk/cnxk_flow.c b/drivers/net/cnxk/cnxk_flow.c index 08ab75e2bb..2eee44ed09 100644 --- a/drivers/net/cnxk/cnxk_flow.c +++ b/drivers/net/cnxk/cnxk_flow.c @@ -62,11 +62,12 @@ const struct cnxk_rte_flow_term_info term[] = { [RTE_FLOW_ITEM_TYPE_IPV6_ROUTING_EXT] = {ROC_NPC_ITEM_TYPE_IPV6_ROUTING_EXT, sizeof(struct rte_flow_item_ipv6_routing_ext)}, [RTE_FLOW_ITEM_TYPE_TX_QUEUE] = {ROC_NPC_ITEM_TYPE_TX_QUEUE, - sizeof(struct rte_flow_item_tx_queue)}}; + sizeof(struct rte_flow_item_tx_queue)}, + [RTE_FLOW_ITEM_TYPE_PPPOES] = {ROC_NPC_ITEM_TYPE_PPPOES, + sizeof(struct rte_flow_item_pppoe)}}; static int -npc_rss_action_validate(struct rte_eth_dev *eth_dev, - const struct rte_flow_attr *attr, +npc_rss_action_validate(struct rte_eth_dev *eth_dev, const struct rte_flow_attr *attr, const struct rte_flow_action *act) { const struct rte_flow_action_rss *rss;