SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
Ethernet module supports SA and VLAN insertion, replacement and deletion.
The source address (SA) and VLAN fields are Tx packet-related control information that are provided as part of the control word through ATI interfaces. Ethernet module supports the feature to insert or replace the source address based on the information in the MAC Address Registers, and also the feature to insert, replace or delete the VLAN fields (VLAN Type and VLAN Tag) based on the setting of the VLTI bit in the MAC_VLAN_Incl register. You can enable the SA insertion or replacement feature for all Transmit packets or selective packets. Similarly, you can enable the VLAN insertion, replacement, or deletion feature for all Tx packets or selective packets.
The software can use the SA insertion or replacement feature to instruct the MAC to do the following for Tx packets:
When SA insertion is enabled, the application must make sure that the packets sent to the MAC do not have the SA field. The MAC does not check whether the SA field is present in the Transmit packet and the MAC inserts the content of MAC Address Registers in the SA field. Similarly, when SA replacement is enabled, the application must make sure that the SA field is present in the packets sent to the MAC. The MAC replaces the 6 bytes following the Destination Address field in the Transmit packet with the content of the MAC Address Registers.
You can enable the SA insertion or replacement feature for all Transmit packets or selective packets:
Program the SA Insertion Control field (Bits[25:23] of TDES3) in the first Transmit descriptor of the packet. When bit 25 of TDES3 is set, the SA Insertion Control field indicates insertion or replacement by MAC Address1 registers. When bit 25 of TDES3 is reset, the bit indicates insertion or replacement by MAC Address 0 registers.
If MAC Address1 Registers are not enabled, the MAC Address0 registers are used for insertion or replacement irrespective of the value of the most-significant bit of the SA Insertion Control field.