There is an issue with VLAN tags not being inserted into packets generated by the PTP offload

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

There is an issue with VLAN tags not being inserted into packets generated by the PTP offload

Jump to solution
2,325 Views
forfortuna
Contributor I

I am using S32G399 and I am currently testing the PTP function based on GMAC0 based on M-7 core.

First, I have completed the offload setting by setting MAC_PTO_Control and confirmed that it sends and receives packets normally.

As the next step, we need to attach a VLAN tag to the PTP packets generated by PTP offload to apply TSN's TAS feature.

To do this

As a result of using functions such as [Gmac_Ip_SetTxOuterVlanTagForInsertion], [Gmac_Ip_SetTxInnerVlanTag], and DMA Queue setting, packets not generated by offload are transmitted with VLAN tags inserted, but packets automatically generated by offload are not transmitted with VLANs attached.

 

1. Is it not possible to insert a VLAN tag for packets generated by PTP Offload?

2. (Additional question) When using Offload, there is no function to update the time automatically like the PTP module on other boards?

SHlim
0 Kudos
Reply
1 Solution
2,261 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. As for overall PTP offload funtionality, we understand the following is provided:

"Software cannot enlarge the capability of PTP offload. Because once offload is enabled, the PTP messages will not reach the host cpu, and will be handled by the MAC layer. The software has no chance to intervene."

Which seems to be part of the limitations you are seeing.

Please, let us know.

View solution in original post

0 Kudos
Reply
3 Replies
2,301 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We understand that currently, the whole description being provided is using the M7 core, is this correct?

If so, can help us providing the RTD version you are using? Also, any additional packages being used as well as versions for them. Were there any changes made to the packages/drivers being used?

Please, let us know.

0 Kudos
Reply
2,283 Views
forfortuna
Contributor I

 

Hi,

Thank you for your response.

 

The answer to your question is as follows

1. currently using M7 core
2. RTD version: (pic1) S32_RTD_4_0_2_D2306_ASR_REL_4_4_REV_0000_20230630
3. driver changes: I modified it like pic2 to take advantage of the PTP offload feature.

SHlim
0 Kudos
Reply
2,262 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. As for overall PTP offload funtionality, we understand the following is provided:

"Software cannot enlarge the capability of PTP offload. Because once offload is enabled, the PTP messages will not reach the host cpu, and will be handled by the MAC layer. The software has no chance to intervene."

Which seems to be part of the limitations you are seeing.

Please, let us know.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1905733%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThere%20is%20an%20issue%20with%20VLAN%20tags%20not%20being%20inserted%20into%20packets%20generated%20by%20the%20PTP%20offload%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1905733%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20S32G399%20and%20I%20am%20currently%20testing%20the%20PTP%20function%20based%20on%20GMAC0%20based%20on%20M-7%20core.%3C%2FP%3E%3CP%3EFirst%2C%20I%20have%20completed%20the%20offload%20setting%20by%20setting%20MAC_PTO_Control%20and%20confirmed%20that%20it%20sends%20and%20receives%20packets%20normally.%3C%2FP%3E%3CP%3EAs%20the%20next%20step%2C%20we%20need%20to%20attach%20a%20VLAN%20tag%20to%20the%20PTP%20packets%20generated%20by%20PTP%20offload%20to%20apply%20TSN's%20TAS%20feature.%3C%2FP%3E%3CP%3ETo%20do%20this%3C%2FP%3E%3CP%3EAs%20a%20result%20of%20using%20functions%20such%20as%20%5BGmac_Ip_SetTxOuterVlanTagForInsertion%5D%2C%20%5BGmac_Ip_SetTxInnerVlanTag%5D%2C%20and%20DMA%20Queue%20setting%2C%20packets%20not%20generated%20by%20offload%20are%20transmitted%20with%20VLAN%20tags%20inserted%2C%20but%20packets%20automatically%20generated%20by%20offload%20are%20not%20transmitted%20with%20VLANs%20attached.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E1.%20Is%20it%20not%20possible%20to%20insert%20a%20VLAN%20tag%20for%20packets%20generated%20by%20PTP%20Offload%3F%3C%2FP%3E%3CP%3E2.%20(Additional%20question)%20When%20using%20Offload%2C%20there%20is%20no%20function%20to%20update%20the%20time%20automatically%20like%20the%20PTP%20module%20on%20other%20boards%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1907141%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20There%20is%20an%20issue%20with%20VLAN%20tags%20not%20being%20inserted%20into%20packets%20generated%20by%20the%20PTP%20offload%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1907141%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20feedback.%20As%20for%20overall%20PTP%20offload%20funtionality%2C%20we%20understand%20the%20following%20is%20provided%3A%3C%2FP%3E%0A%3CP%3E%22%3CSPAN%3ESoftware%20cannot%20enlarge%20the%20capability%20of%20PTP%20offload.%26nbsp%3BBecause%20once%20offload%20is%20enabled%2C%20the%20PTP%20messages%20will%20not%20reach%20the%20host%20cpu%2C%20and%20will%20be%20handled%20by%20the%20MAC%20layer.%20The%20software%20has%20no%20chance%20to%20intervene.%3C%2FSPAN%3E%22%3C%2FP%3E%0A%3CP%3EWhich%20seems%20to%20be%20part%20of%20the%20limitations%20you%20are%20seeing.%3C%2FP%3E%0A%3CP%3EPlease%2C%20let%20us%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1906732%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20There%20is%20an%20issue%20with%20VLAN%20tags%20not%20being%20inserted%20into%20packets%20generated%20by%20the%20PTP%20offload%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1906732%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20answer%20to%20your%20question%20is%20as%20follows%3C%2FP%3E%3CP%3E1.%20currently%20using%20M7%20core%3CBR%20%2F%3E2.%20RTD%20version%3A%20(pic1)%20S32_RTD_4_0_2_D2306_ASR_REL_4_4_REV_0000_20230630%3CBR%20%2F%3E3.%20driver%20changes%3A%20I%20modified%20it%20like%20pic2%20to%20take%20advantage%20of%20the%20PTP%20offload%20feature.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1906544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20There%20is%20an%20issue%20with%20VLAN%20tags%20not%20being%20inserted%20into%20packets%20generated%20by%20the%20PTP%20offload%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1906544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EWe%20understand%20that%20currently%2C%20the%20whole%20description%20being%20provided%20is%20using%20the%20M7%20core%2C%20is%20this%20correct%3F%3C%2FP%3E%0A%3CP%3EIf%20so%2C%20can%20help%20us%20providing%20the%20RTD%20version%20you%20are%20using%3F%20Also%2C%20any%20additional%20packages%20being%20used%20as%20well%20as%20versions%20for%20them.%20Were%20there%20any%20changes%20made%20to%20the%20packages%2Fdrivers%20being%20used%3F%3C%2FP%3E%0A%3CP%3EPlease%2C%20let%20us%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E