GD32F10x User Manual
673
Unicast frame source address filter
Enable MAC address 1 to MAC address 3 register and set the corresponding SAF bit in the
MAC address high register, the MAC compares and filter the source address (SA) field in the
received frame with the values programmed in the SA registers. MAC also supports the group
filter on the source address. If the SAFLT bit in frame filter register ENET_MAC_FRMF is set,
MAC drops the frame that failed the source address filtering; meanwhile the filter result will
reflect by SAFF bit in RDES0 of DMA receive descriptor. When the SAFLT bit is set, the
destination address filter is also at work, so the result of the filter is simultaneous determined
by DA and SA filter. This means that, as long as a frame does not pass any one of the filters
(DA filter or SA filter), it will be discarded. Only a frame passing the entire filter can be
forwarded to the application.
Reverse filtering operation
MAC can reverse filter-match result at the final output whether the destination address filtering
or source address filtering. By setting the DAIFLT and SAIFLT bits in ENET_MAC_FRMF
register, this address filter reverse function can be enabled. DAIFLT bit is used for unicast
and multicast frames’ DA filtering result, SAIFLT bit is used for unicast and multicast frames
SA filtering result.
The following two tables summarize the destination address and source address filters
working condition at different configuration.
Table 22-4. Destination address filtering table
Frame
Type
PM HPFLT HUF DAIFLT HMF MFD BFRMD
DA filter operation
Broadcast
1
-
-
-
-
-
-
Pass
0
-
-
-
-
-
0
Pass
0
-
-
-
-
-
1
Fail
Unicast
1
-
-
-
-
-
-
Pass all frames
0
-
0
0
-
-
-
Pass on perfect/group filter match
0
-
0
1
-
-
-
Fail on perfect/group filter match
0
0
1
0
-
-
-
Pass on hash filter match
0
0
1
1
-
-
-
Fail on hash filter match
0
1
1
0
-
-
-
Pass on hash or perfect/group filter
match
0
1
1
1
-
-
-
Fail on hash or perfect/group filter
match
Multicast
1
-
-
-
-
-
-
Pass all frames
-
-
-
-
-
1
-
Pass all frames
0
-
-
0
0
0
-
Pass on perfect/group filter match and
drop PAUSE control frames if PCFRM =
0x
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...