aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
diff options
context:
space:
mode:
authorGravatar Suman Ghosh <sumang@marvell.com> 2023-08-04 10:29:35 +0530
committerGravatar Jakub Kicinski <kuba@kernel.org> 2023-08-07 19:15:59 -0700
commit21e748354ec246c9a1a83193cb3f82c05a233b8d (patch)
tree1b770c8a144a68d3452887e2b03f43e6279260a7 /drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
parentocteontx2-af: Code restructure to handle TC outer VLAN offload (diff)
downloadlinux-21e748354ec246c9a1a83193cb3f82c05a233b8d.tar.gz
linux-21e748354ec246c9a1a83193cb3f82c05a233b8d.tar.bz2
linux-21e748354ec246c9a1a83193cb3f82c05a233b8d.zip
octeontx2-af: TC flower offload support for inner VLAN
Extend the current TC flower offload support to enable filters matching inner VLAN, and support offload of those filters to hardware. Signed-off-by: Suman Ghosh <sumang@marvell.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20230804045935.3010554-3-sumang@marvell.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
index 7cd33edca365..d30e84803481 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
@@ -2787,6 +2787,11 @@ static void rvu_dbg_npc_mcam_show_flows(struct seq_file *s,
seq_printf(s, "mask 0x%x\n",
ntohs(rule->mask.vlan_tci));
break;
+ case NPC_INNER_VID:
+ seq_printf(s, "0x%x ", ntohs(rule->packet.vlan_itci));
+ seq_printf(s, "mask 0x%x\n",
+ ntohs(rule->mask.vlan_itci));
+ break;
case NPC_TOS:
seq_printf(s, "%d ", rule->packet.tos);
seq_printf(s, "mask 0x%x\n", rule->mask.tos);