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 D88D7436EC; Thu, 14 Dec 2023 08:18:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3A18402E6; Thu, 14 Dec 2023 08:18:09 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id A5C85402DE for ; Thu, 14 Dec 2023 08:18:07 +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 3BE0Yrjg025574 for ; Wed, 13 Dec 2023 23:18:06 -0800 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=pfpt0220; bh=pLuTBzC2 JEpfwwNtCaQ8NCv84/VHr1uJPDEr4mKq8zg=; b=U3+rJuTL45cE0bU4vOSW9Uxg mteJzh/CJEVOZVpDz0wk6s7/aIRPu5313bXBRBz4bsrONzINaISpqN7W2ZeVYdUv pc/4+o8/1jGmHIMkGzblOe17R3OKAMu4c+pMgyFww4BqJw9yx5/H0HGGDIFDHorV 3rZQbB0ASGUAd+xfldzOjECjZCxeh7XCHuEgO6zC7h46bqJ+w184ohaoelQIaREv oVG3VES7jxZXNHwJzE3u+WmfrBLPim4YcAq+ektTD59SMCSThGIMr8cX2CA1CnLk w5kjDDIyWjf19IwjCOkVQXnCEqqjwNE2Ago09nfpGA4L3+UK8pW67kaQVOdWbg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uyq9q12pm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 13 Dec 2023 23:18:06 -0800 (PST) Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 13 Dec 2023 23:18:04 -0800 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; Wed, 13 Dec 2023 23:18:04 -0800 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id DFCA13F7085; Wed, 13 Dec 2023 23:18:02 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul Subject: [dpdk-dev] [PATCH 1/2] common/cnxk: support PPPoE flow item type in ROC API Date: Thu, 14 Dec 2023 12:47:58 +0530 Message-ID: <20231214071759.411405-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: VDIGqVOZhw1-pbkJOIfpMId6Yz58KbHi X-Proofpoint-ORIG-GUID: VDIGqVOZhw1-pbkJOIfpMId6Yz58KbHi 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 Added ROC API changes to parse RTE_FLOW_ITEM_TYPE_PPPOES rte_flow item type. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_parse.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index 459fa33de9..cb59db2220 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -33,6 +33,7 @@ enum roc_npc_item_type { ROC_NPC_ITEM_TYPE_VXLAN_GPE, ROC_NPC_ITEM_TYPE_IPV6_EXT, ROC_NPC_ITEM_TYPE_GRE_KEY, + ROC_NPC_ITEM_TYPE_PPPOES, ROC_NPC_ITEM_TYPE_HIGIG2, ROC_NPC_ITEM_TYPE_CPT_HDR, ROC_NPC_ITEM_TYPE_L3_CUSTOM, diff --git a/drivers/common/cnxk/roc_npc_parse.c b/drivers/common/cnxk/roc_npc_parse.c index ecd1b3e13b..9ceb707ebb 100644 --- a/drivers/common/cnxk/roc_npc_parse.c +++ b/drivers/common/cnxk/roc_npc_parse.c @@ -525,6 +525,11 @@ npc_parse_lb(struct npc_parse_state *pst) info.len = pattern->size; lt = NPC_LT_LB_STAG_QINQ; lflags = NPC_F_STAG_CTAG; + } else if (pst->pattern->type == ROC_NPC_ITEM_TYPE_PPPOES) { + info.hw_mask = NULL; + info.len = pattern->size; + info.hw_hdr_len = 2; + lt = NPC_LT_LB_PPPOE; } else if (pst->pattern->type == ROC_NPC_ITEM_TYPE_RAW) { raw_spec = pst->pattern->spec; if (raw_spec->relative) -- 2.39.2