diff mbox series

[v4,1/2] common/cnxk: update precolor table setup for VLAN

Message ID 20220621073511.878557-1-skori@marvell.com (mailing list archive)
State Deferred
Delegated to: Jerin Jacob
Headers show
Series [v4,1/2] common/cnxk: update precolor table setup for VLAN | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Sunil Kumar Kori June 21, 2022, 7:35 a.m. UTC
From: Sunil Kumar Kori <skori@marvell.com>

As per new spec in DPDK, VLAN priority is supported for
precoloring of input packet.

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
---
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 mbox series

Patch

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,