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 ECD28A00C3; Tue, 21 Jun 2022 09:35:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0F0040A87; Tue, 21 Jun 2022 09:35:29 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 8467740151 for ; Tue, 21 Jun 2022 09:35:28 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25L1JjqN027454 for ; Tue, 21 Jun 2022 00:35:27 -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=VG7KCHSsxVtagEP2Ld4g3nEF1xaZdmzQZhy098GxT0o=; b=g5Ih4G1VVLh6evNt9SzlEPTn8RF1FmncRaIy9ojQmldD9NeVTt0V8UQ5HI+uxUt7y+xT ERplv5UmktDR8BU905XTuBUMU0+IXMxwzlrAg5xT8nqXU1YiBY9hYBFjA5i7SM2TnbdX VZEcDv7sfSo9+lCicOcuOP/BQMm8wuhMY6nmCkW7mcS4RiNGTkWJMKo/cbhXMgMu6ZUu Lnml33jGjOf+inuOSJHrNr9/Ti+hJjaaOBxb1CUEfvkEUsNv1IVyisnTr/iRixXtjf4Q m2jSFcr3KUAcM4Y9NKhK0A2NYF5fH5mrxKRykQ5rKmplsRTPvE4/HUnvhek+vl0B94hz EQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3gu47ps4pm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 21 Jun 2022 00:35:27 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 21 Jun 2022 00:35:26 -0700 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.18 via Frontend Transport; Tue, 21 Jun 2022 00:35:26 -0700 Received: from localhost.localdomain (unknown [10.28.34.25]) by maili.marvell.com (Postfix) with ESMTP id 70B4F5E6862; Tue, 21 Jun 2022 00:35:24 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: Subject: [PATCH v4 1/2] common/cnxk: update precolor table setup for VLAN Date: Tue, 21 Jun 2022 13:05:10 +0530 Message-ID: <20220621073511.878557-1-skori@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220616115402.772274-2-skori@marvell.com> References: <20220616115402.772274-2-skori@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: PrElNGfi8IKa9ImJkxzS7_vKHg9oT1H4 X-Proofpoint-ORIG-GUID: PrElNGfi8IKa9ImJkxzS7_vKHg9oT1H4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-21_03,2022-06-17_01,2022-02-23_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 From: Sunil Kumar Kori As per new spec in DPDK, VLAN priority is supported for precoloring of input packet. Signed-off-by: Sunil Kumar Kori --- v3..v4: - Remove Depends On tag from commit message. v2..v3: - No changes. v1..v2: - Aligned with latest input color spec. drivers/common/cnxk/roc_nix.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h index aedde1c10f..98ff513cb7 100644 --- a/drivers/common/cnxk/roc_nix.h +++ b/drivers/common/cnxk/roc_nix.h @@ -42,6 +42,12 @@ enum roc_nix_bpf_level_flag { ROC_NIX_BPF_LEVEL_F_TOP = BIT(2), }; +enum roc_nix_bpf_precolor_tbl_size { + ROC_NIX_BPF_PRECOLOR_TBL_SIZE_GEN = 16, + ROC_NIX_BPF_PRECOLOR_TBL_SIZE_VLAN = 16, + ROC_NIX_BPF_PRECOLOR_TBL_SIZE_DSCP = 64, +}; + enum roc_nix_bpf_pc_mode { ROC_NIX_BPF_PC_MODE_VLAN_INNER, ROC_NIX_BPF_PC_MODE_VLAN_OUTER, -- 2.25.1