VLAN tags transformation

Starting from the Stingray Service Gateway version 7.4 the new feature of VLAN tags transformation is added. Transformation mode is very similar to the Substitution mode, but in this case the number of VLAN tags within the subscriber packet may differ from the number specified in the bras_vlan_subst configuration option.
The examples:

bras_vlan_terminate=3
bras_vlan_subst=1071

For such mode:

bras_vlan_terminate=3
bras_vlan_subst=1071.65

For such mode:

When the traffic is originated the reverse rules are applied.

SSG legacy pf_ring-version, CentOS 6: It should be taken into account that the modes implying VLAN tags adding/removing are very resource-consuming for the Stingray Service Gateway, i.e. when the packet size is changing (that is, VLAN tags deleting/adding), which can significantly affect the total SSG performance.
The DPDK version of SSG on CentOS 8 is practically devoid of this drawback - there is almost no decrease in fastDPI performance due to optimizations of packet processing