2391925_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2391925_en-US

2391925_en-US

How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on the S

Hello 

How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on the S32G399?

zhijie_0-1783478043907.png


Re: How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on t

Make sure the gPTP frame enters Q4.

How to implement this?

Re: How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on t

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

Joey_z_0-1783569523008.png

Hope this information can help you.

BR

Joey



Re: How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on t

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?

Re: How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on t

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

Re: How to ensure that gPTP Layer 2 packets are transmitted with the highest priority via GMAC0 on t

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.

        gmac0: ethernet@4033c000 {
            status = "disabled";
            compatible = "nxp,s32cc-dwmac";
mtl_rx_setup_gmac0: rx-queues-config {
                snps,rx-queues-to-use = <5>;
                #address-cells = <1>;
                #size-cells = <0>;

                queue@0 {
                };

                queue@1 {
                };

                queue@2 {
                };

                queue@3 {
                };

                queue@4 {
                };
            };

            mtl_tx_setup_gmac0: tx-queues-config {
                snps,tx-queues-to-use = <5>;
                #address-cells = <1>;
                #size-cells = <0>;

                queue@0 {
                };

                queue@1 {
                };

                queue@2 {
                };

                queue@3 {
                };

                queue@4 {
                };
            };
 Also, can find the RX queue packet routing configuration in the GMAC driver, you can try to set the node as the "snps,route-ptp" for Q4.
Joey_z_0-1783656314593.png
You can contact us at any time if you still have any question.
 

BR

Joey

タグ(1)
評価なし
バージョン履歴
最終更新日:
土曜日
更新者: