SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
The software can use the VLAN insertion, replacement, or deletion feature to instruct the MAC to do the following for Tx packets:
VLTI Bit Condition | Description |
---|---|
Set | The MAC inserts or replaces the following: |
VLAN Type field (C-VLAN or S-VLAN as indicated by the CSVL bit of MAC_VLAN_Incl register) | |
VLAN Tag field with content of the VT field of Transmit context descriptor of the packet | |
Reset | The MAC inserts or replaces the following: |
VLAN Type field (C-VLAN or S-VLAN as indicated by the CSVL bit of MAC_VLAN_Incl register) | |
VLAN Tag field with the VLT field of MAC_VLAN_Incl register |
When VLAN replacement or deletion is enabled, the MAC checks if the VLAN Type field (0x8100 or 0x88A8) is present after the DA and SA fields in the Transmit packet. The replace or delete operation does not occur if the VLAN Type field is not detected in two bytes following the DA and SA fields. However, when VLAN insertion is enabled, the MAC does not check the presence of VLAN Type field in the Transmit packet and just inserts the VLAN Type and VLAN Tag fields.
You can enable the VLAN insertion, replacement, or deletion feature for all Tx packets or selective packets: