aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlok Mishra <almishra@marvell.com>2024-09-02 18:28:21 +0500
committerDamjan Marion <dmarion@0xa5.net>2024-09-25 12:58:59 +0000
commite07c5fe467eac3c236adae4dc080c40302a0a8e5 (patch)
tree84430f3c24697418299d441586c3793015efe456 /src/plugins
parent8f989630b0ae1d88ce7551cfa53b3ea76f4b8314 (diff)
octeon: enable h/w vlan tagging support
This patch enables h/w vlan tagging by setting MAX_VTAG_INS field in NIX_AF_SMQ_CFG register. This is required to configure VLAN tag insertion by the hardware for egress packets Type: feature Signed-off-by: Alok Mishra <almishra@marvell.com> Change-Id: Ifcdf9c1e5b0b8ddc27cabab597ae91780ceca095
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dev_octeon/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dev_octeon/init.c b/src/plugins/dev_octeon/init.c
index 29d1c16ad96..2f0c82c1c01 100644
--- a/src/plugins/dev_octeon/init.c
+++ b/src/plugins/dev_octeon/init.c
@@ -110,6 +110,7 @@ oct_init_nix (vlib_main_t *vm, vnet_dev_t *dev)
.reta_sz = ROC_NIX_RSS_RETA_SZ_256,
.max_sqb_count = 512,
.pci_dev = &cd->plt_pci_dev,
+ .hw_vlan_ins = true,
};
if ((rrv = roc_nix_dev_init (cd->nix)))