octeon: enable h/w vlan tagging support 32/41532/2
authorAlok Mishra <[email protected]>
Mon, 2 Sep 2024 13:28:21 +0000 (18:28 +0500)
committerDamjan Marion <[email protected]>
Wed, 25 Sep 2024 12:58:59 +0000 (12:58 +0000)
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 <[email protected]>
Change-Id: Ifcdf9c1e5b0b8ddc27cabab597ae91780ceca095

src/plugins/dev_octeon/init.c

index 29d1c16..2f0c82c 100644 (file)
@@ -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)))