VLAN Stripping - 7.2 English

AXI 1G/2.5G Ethernet Subsystem Product Guide (PG138)

Document ID
PG138
Release Date
2023-11-15
Version
7.2 English

VLAN stripping allows the TEMAC core to remove a VLAN tag in select Ethernet frames as they pass through the AXI Ethernet Subsystem in either the transmit or receive direction.

Figure 1. VLAN Stripping AXI Ethernet Page-1 Sheet.1 Sheet.2 Sheet.3 Sheet.4 Sheet.5 Sheet.6 Sheet.7 Sheet.8 Sheet.9 Sheet.10 Sheet.11 Sheet.12 Sheet.13 Sheet.14 Sheet.15 Sheet.16 Sheet.17 Sheet.18 Sheet.19 Sheet.20 Sheet.21 Sheet.22 Sheet.23 Sheet.24 Sheet.25 Sheet.26 Sheet.27 Sheet.28 Sheet.29 Sheet.30 Sheet.31 Sheet.32 Sheet.33 6 bytes 6bytes Sheet.34 Type /Len Type/Len Sheet.35 FCS FCS Sheet.36 Data Data Sheet.37 46 - 1500 bytes normal 46 - 9198 bytes jumbo 46 - 1500 bytes normal 46 - 9198 bytes jumbo Sheet.38 Dest Addr DestAddr Sheet.39 SrceAddr SrceAddr Sheet.40 6 bytes 6bytes Sheet.41 2 bytes 2bytes Sheet.42 4 bytes 4bytes Sheet.43 Type /Len Type/Len Sheet.44 FCS FCS Sheet.45 Data Data Sheet.46 Dest Addr DestAddr Sheet.47 SrceAddr SrceAddr Sheet.48 4bytes 4bytes Sheet.49 VLAN Tag VLANTag Sheet.50 Type /Len Type/Len Sheet.51 FCS FCS Sheet.52 Data Data Sheet.53 Dest Addr DestAddr Sheet.54 SrceAddr SrceAddr Sheet.55 VLAN Tag VLANTag Sheet.56 Type /Len Type/Len Sheet.57 FCS FCS Sheet.58 Data Data Sheet.59 Dest Addr DestAddr Sheet.60 SrceAddr SrceAddr Sheet.61 VLAN Tag VLANTag Sheet.62 VLAN Tag VLANTag Standard Arrow Standard Arrow.64 Sheet.65 Standard Arrow.68 Standard Arrow.70 Sheet.70 Sheet.71 Standard Arrow.72 Standard Arrow.74 Sheet.74 Sheet.75 Sheet.77 Sheet.78 Sheet.79 X14091 X14091 Sheet.66 4bytes 4bytes

One VLAN tag is removed:

  • Non-VLAN frames are not changed.
  • VLAN tagged frames have the outer VLAN tag removed and the TEMAC core does not check to see how many VLAN tags it already has (if there are four tags, the core makes it three).

When VLAN stripping is enabled at build time with the appropriate parameter, a field in the Reset and Address Filter Register is used to select one of three VLAN stripping modes.

  • Do not strip tags from any frames.
  • Strip one tag from all VLAN tagged frames.
  • Strip one tag only from select VLAN tagged frames based on VID value.

The third mode requires a method for specifying which tagged frames should be stripped. The TEMAC Receive Configuration Word 0 Register and Receive VLAN Data Table are used for this purpose. A 1 in the strip enable field for a TPID value indicates that frame should have its VLAN tag stripped.

Again, transmit In-Band FCS mode is not allowed and receive FCS stripping is required when using VLAN stripping because the FCS field value would not be correct for the frame with the VLAN tag removed. Although receive stripping is enabled, any padding, if present, is not stripped due to the TYPE/LENGTH field of the receive frame containing a VLAN tag rather than a length value.