How can I rewrite VLAN at egress on ls1028ardb?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I rewrite VLAN at egress on ls1028ardb?

1,424 Views
yyu2
Contributor III

Hi all,

In the "16.4.13.10 Rewriter" chapter of [1], it mentions:

The device includes a rewriter common for all ports that determines how the egress frame is edited before transmission. The rewriter performs the following editing:

  • VLAN editing; tagging of frames and remapping of PCP and DEI.
  • Redundancy tag.
  • DSCP remarking; rewriting the DSCP value in IPv4 and IPv6 frames based on classified DSCP value.
  • FCS updating.
  • Precision Time Protocol time stamp updating

So, my question is how can I enable these functions in OpenIL1.7.1 for ls1028ardb?

Thanks,

   Yi

[1]Lsa, A. (2019). QorIQ LS1028A Reference Manual.

Tags (1)
0 Kudos
Reply
5 Replies

1,302 Views
yyu2
Contributor III

Thank you Yiping.

Then after enabling the function, how to configure the egress frame marking in OpenIL? For example, can I designate some specific VLAN tags for egress frame?

Best,

   Yi

0 Kudos
Reply

1,302 Views
yipingwang
NXP TechSupport
NXP TechSupport

VLAN rewriting is not yet supported either. What is the exact use case from your product? It would be good to capture it correctly since we plan to add it at some point.

0 Kudos
Reply

1,302 Views
yyu2
Contributor III

Hi Yiping,

I want to use ls1028ardb to translate traffic flows to/from TSN streams which is identified by {DstMAC, VLAN}. So it may need to touch MAC address rewriting and VLAN tag rewriting. Is that possible?

Thanks,

Yi

0 Kudos
Reply

1,302 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following feedback from the LSDK development team.

As for frame rewriting, the switch has limited MAC address rewriting abilities, basically only swapping of source MAC and destination MAC. I don't think we'll support that soon in the Linux driver. We'll try to support, however, VLAN ID and PCP rewriting.

0 Kudos
Reply

1,302 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please configure Linux Kernel as the following.

Symbol: TSN [=y]

│ Type : boolean

│ Prompt: 802.1 Time-Sensitive Networking support

│ Location:

│ -> Networking support (NET [=y])

│ -> Networking options

│ Depends on: NET [=y] && VLAN_8021Q [=y] && PTP_1588_CLOCK [=y]

0 Kudos
Reply