[PATCH v4 1/2] common/cnxk: update precolor table setup for VLAN
skori at marvell.com
skori at marvell.com
Tue Jun 21 09:35:10 CEST 2022
From: Sunil Kumar Kori <skori at marvell.com>
As per new spec in DPDK, VLAN priority is supported for
precoloring of input packet.
Signed-off-by: Sunil Kumar Kori <skori at 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 --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
More information about the dev
mailing list