Hello @Abrar_23 ,
let's start with the CB. If you want to isolate the CB traffic from the other traffic by adding a VLAN tag to it, you have to do the following:
Add VLAN entry to VLAN Lookup Table
// no mirroring
VING_MIRR = 0x0
VEGR_MIRR = 0x0
// vlan port membership, add ports used for CB
// for switch 1 this would be e.g. port 2, 3 and 4
VMEMB_PORT = 0x1C
VLAN_BC = 0x1C
// keep the VLAN tag at egress
TAG_PORT = 0x1C
// VLAN type this entry is eligible for
TYPE_ENTRY[1] = 1
TYPE_ENTRY[0] = 1
// VLAN ID
VLANID = 100
Edit the respective L2 Lookup Table entry
// add VLAN ID 100 to the lookup
VLANID = 100
VLANIDMASK = 0xfff
where VLANIDMASK is a part of MASK, you already have set up.
If you want to keep VLAN tag on egress, select port in TAG_PORT (VLAN lookup table).
If you want to add VLAN tag on ingress, VLANID shall be set on MAC configuration table for the requested port.
I think that L2 policing table shall be also set - please check AN12925, chapter 5.3.1 L2 policing.
Your idea with VLAID priority as the flow shaper might work.
BTW, how do you generate your streams? How much traffic (Mbps) do you generate?
Bets regards,
Pavel