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 2B51EA00BE; Thu, 16 Jun 2022 13:54:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B5E640141; Thu, 16 Jun 2022 13:54:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 287D34003C for ; Thu, 16 Jun 2022 13:54:10 +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 25G9CxoO009317 for ; Thu, 16 Jun 2022 04:54:09 -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=AdR85onvmOd3WhglaTBvuuuCmWGio2O9FfNxygIWJxg=; b=i9r9mXJ9MwF68BVAujScFwszZ/hG7F42fPJ2cVJhUiPrZOjLG2fgIB2Pwr6L7QetbrPy ST2Voibc1kMR897XfZz/kSt0kfwaIhnWyeXzfUHfQTQb1g6AK1/fdXuaNQNVYVH3zKBK H8pVPe3cEmBRppMbl8g10ZTmck/7Ql8mAHHy/+bI7SHZSVNXChieoHhp20ABvn1tQ63i tL+1dBiXqkS3aG0135A5cyq25aI29CmJ3BoebutVjaJSav3+o3G2MBKI2REnEmxuHa2/ ObpZsMlyJtULi/bcX1Dow1exUaHg4zQ5tHTsutngdRVQPJW2BdNjues9PAV+cjStfPu2 IA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3gr1pmgk2g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 16 Jun 2022 04:54:08 -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.18; Thu, 16 Jun 2022 04:54:07 -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 04:54:07 -0700 Received: from localhost.localdomain (unknown [10.28.34.25]) by maili.marvell.com (Postfix) with ESMTP id 5AFF73F7075; Thu, 16 Jun 2022 04:54:05 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: Subject: [PATCH v3 1/2] common/cnxk: update precolor table setup for VLAN Date: Thu, 16 Jun 2022 17:24:01 +0530 Message-ID: <20220616115402.772274-1-skori@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220616094825.761510-2-skori@marvell.com> References: <20220616094825.761510-2-skori@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: p2j2o0EMDy76Ni5WkEiaGTtQxFFRSxUn X-Proofpoint-GUID: p2j2o0EMDy76Ni5WkEiaGTtQxFFRSxUn 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_08,2022-06-16_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 --- 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