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 EDA30A00BE; Thu, 16 Jun 2022 11:48:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E07C142C06; Thu, 16 Jun 2022 11:48:34 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 87ECC4281E for ; Thu, 16 Jun 2022 11:48:33 +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 25G9Cxfv009315 for ; Thu, 16 Jun 2022 02:48:32 -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=8nRAkMaE+XuQi6UdIHE0nQF9QyK1oY8w15jE5cmLWeg=; b=ApuBU7yZWJFTXn+pBjdtlcaMJ8+WYYjwW86S741S8yEE8Q/iLeOzkkelxYiceAjt3mXI 3y7MVpkTQAIdtZ4WD0FfGN1rOluy6cjNIts+dTEYzWoZixzthSj0kz1sGOQ7ZdHYIlQh 1Q40CoTrpqMHg6X+/zwXXWnEEIfZfOYqxobMqRbmwsc2eOjqgNlQeNstMOPDSAeJtgvM eYF9NfDri6BVGPt9WpCXfqmaa4SPWQop8SZJYjhQSFo3nlFf4NH9VrW7perrJdHdBtNC 5QUglpsqZs/eY7j2AjEDfC3wXg0M9B8gdQy+5WYsgX38KRYjyoJ67p8WGlSPHQxfUbW3 8w== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3gr1pmg4yk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 16 Jun 2022 02:48:32 -0700 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.2; Thu, 16 Jun 2022 02:48:31 -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.2 via Frontend Transport; Thu, 16 Jun 2022 02:48:31 -0700 Received: from localhost.localdomain (unknown [10.28.34.25]) by maili.marvell.com (Postfix) with ESMTP id 06CD43F7063; Thu, 16 Jun 2022 02:48:28 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: Subject: [PATCH v2 1/2] common/cnxk: update precolor table setup for VLAN Date: Thu, 16 Jun 2022 15:18:24 +0530 Message-ID: <20220616094825.761510-1-skori@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220301090056.1042866-2-skori@marvell.com> References: <20220301090056.1042866-2-skori@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: S2JzIu2cgQFqXu-Zvi-lDlkGDmMJlKy_ X-Proofpoint-GUID: S2JzIu2cgQFqXu-Zvi-lDlkGDmMJlKy_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-16_06,2022-06-15_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. Depends-on: patch-23516 ("app/testpmd: support different input color method") Signed-off-by: Sunil Kumar Kori --- 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