SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
The MAC can perform perfect filtering based on the source address field of received packets. By default, the MAC compares the SA field with the values programmed in the SA registers. You can configure the MAC Address registers[1–31] to use SA instead of DA for comparison by setting Bit 30 of corresponding register.
The MAC also supports group filtering with SA. You can filter a group of addresses by masking one or more bytes of the address. The MAC drops the packets that fail the SA filter if the SAF bit is set in MAC_Packet_Filter register. Otherwise, the result of the SA filter is given as a status bit in the Receive Status word. When the SAF bit is set, the SA filter and DA filter result is AND’ed to decide whether the packet needs to be forwarded. This means that the packet is dropped if either filter fails. The packet is forwarded to the application only if the packet passes both filters in-order.
Packet Type | PR | SAIF | SAF | SA Filter Operation |
---|---|---|---|---|
Unicast | 1 | X | X | Pass all packets. |
0 | 0 | 0 | Pass status on Perfect or Group filter match but do not drop packets that fail | |
0 | 1 | 0 | Fail status on Perfect or Group filter match but do not drop packet | |
0 | 0 | 1 | Pass on Perfect or Group filter match and drop packets that fail | |
0 | 1 | 1 | Fail on Perfect or Group filter match and drop packets that fail |