Hello
How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on the S32G399?
Make sure the gPTP frame enters Q4.
How to implement this?
Hi,zhijie
Thank you for your reply and information.
You can try to implement this function by referring to the BSP User Manual as the following picture. It can be considered to set a separate time window for Q4, giving it a higher priority. Additionally, Make sure the gPTP frame enters Q4. The following commands for layer2 time window setting can be used as a reference:
tc qdisc add dev eth0 root taprio \
num_tc 5 \
map 0 1 2 3 4 \
queues 1@0 1@1 1@2 1@3 1@4 \
base-time 0 \
sched-entry S 10 50000 \
sched-entry S 0f 450000 \
sched-entry S 1f 96 \
flags 0x2
Hope this information can help you.
BR
Joey
Do you use gPTP with GMAC0 on M-core or A-core?
A: on A-core
Are you currently utilizing GMAC's TSN feature? Did the VLAN be used?
A: Utilizing GMAC's TSN feature:gptp;No VLAN on gptp packets.
The GMAC controller provides five Tx/Rx queues,
I need to route all gPTP traffic to the highest-priority Tx/Rx queue(q4).
Could you advise the corresponding register configurations and code implementation methods and How to configure(such as:tc,ip) at LInux?
Hi,zhijie
Thank you for contacting us. Could you tell me more information?
Do you use gPTP with GMAC0 on M-core or A-core?
Are you currently utilizing GMAC's TSN feature? Did the VLAN be used?
BR
Joey
Hi,zhijie
Thank you for your reply.
You can try to configure the queue information in the gmac0 section of the device tree.
It is included this file of arch\arm64\boot\dts\freescale\s32cc.dtsi.
BR
Joey