2391925_zh-CN

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

2391925_zh-CN

2391925_zh-CN

如何确保 gPTP 二层数据包通过 S 上的 GMAC0 以最高优先级传输

你好

如何确保 gPTP 第 2 层数据包通过 S32G399 上的 GMAC0 以最高优先级传输?

zhijie_0-1783478043907.png


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

确保 gPTP 帧进入 Q4 区。

如何实现这一点?

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

嗨,志杰

感谢您的回复和提供的信息。

您可以参考 BSP 用户手册,按照下图所示的方式尝试实现此功能。可以考虑为第四季度设定一个单独的时间窗口,并给予其更高的优先级。此外,确保 gPTP 帧进入 Q4。以下命令可用于设置第二层时间窗口,供参考:

tc qdisc add dev eth0 root taprio \
num_tc 5 \
地图 0 1 2 3 4 \
队列 1@0 1@1 1@2 1@3 1@4 \
基准时间 0 \
计划条目 S 10 50000 \
调度条目 S 0f 450000 \
计划条目 S 1f 96 \
标志 0x2

Joey_z_0-1783569523008.png

希望这些信息对您有所帮助。

BR

乔伊



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

您在 M 核或 A 核上使用 GMAC0 时是否使用 gPTP?
A:在 A 核上

您目前是否正在使用GMAC的TSN功能?是否使用了VLAN?
A:利用 GMAC 的 TSN 功能:gptp;gptp 数据包上没有 VLAN。


GMAC控制器提供五个发送/接收队列,

我需要将所有 gPTP 流量路由到优先级最高的 Tx/Rx 队列(q4)。

请问在Linux系统中,相应的寄存器配置、代码实现方法以及如何配置(例如:tc、ip)?

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

嗨,志杰

感谢您与我们联系。您能提供更多信息吗?

您在 M 核或 A 核上使用 GMAC0 时是否使用 gPTP?

您目前是否正在使用GMAC的TSN功能?是否使用了VLAN?

BR

乔伊

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

嗨,志杰

感谢您的回复。

您可以尝试在设备树的 gmac0 部分配置队列信息。

其中包含 arch\arm64\boot\dts\freescale\s32cc.dtsi 文件。

        gmac0 以太网@4033c000 {
状态 = "已禁用" ;
compatible = "nxp,s32cc-dwmac" ;
mtl_rx_setup_gmac0 rx-queues-config {
snps,要使用的 rx 队列 = < 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,要使用的交易队列 = < 5 >;
#address-cells = < 1 >;
#size-cells = < 0 >;

                queue@0 {
};

                queue@1 {
};

                queue@2 {
};

                queue@3 {
};

                queue@4 {
};
};
另外,可以在 GMAC 驱动程序中找到 RX 队列数据包路由配置,您可以尝试将节点设置为 Q4 的“snps,route-ptp”。
Joey_z_0-1783656314593.png
如果您还有任何疑问,可以随时联系我们。
 

BR

乔伊

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