This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] DRA829J:CPSW9G VLAN 优先级不工作

Guru**** 2387830 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1514234/dra829j-cpsw9g-vlan-priority-not-working

器件型号:DRA829J

工具/软件:

您好、

我们在本机以太网配置和 SDK 11中运行 CPSW9G。  

发送时、优先级为6的 VLAN 数据包不会在端口 tx_pri6队列上发送。 所有数据包均通过 TX_pri0发送。

接收时、优先级为6的 VLAN 数据包将通过"p0_TX_pri6"发送到 CPU。 这表明至少有一些设备工作正常。

使用 SDK 10时、它可以正常工作。

发送方:

交通控制

 $ sudo tc qdisc ls dev xf2
qdisc mqprio 1: root tc 8 map 0 1 2 3 4 5 6 1 0 0 0 0 0 0 0 0
             queues:(0:0) (1:1) (2:2) (3:3) (4:4) (5:5) (6:6) (7:7)
             mode:dcb
             shaper:dcb
qdisc pfifo 80: parent 1:8 limit 1000p
qdisc pfifo 30: parent 1:3 limit 1000p
qdisc pfifo 60: parent 1:6 limit 1000p
qdisc tbf 10: parent 1:1 rate 1Gbit burst 1048500b lat 100ms
qdisc pfifo 40: parent 1:4 limit 1000p
qdisc pfifo 70: parent 1:7 limit 1000p
qdisc pfifo 20: parent 1:2 limit 1000p
qdisc pfifo 50: parent 1:5 limit 1000p
qdisc clsact ffff: parent ffff:fff1

Tcpdump

05:48:27.106809 62:1e:cc:3a:c8:37 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 68: vlan 3, p 6, ethertype Unknown (0x8892)

等效工具

tx_pri6: 0

接收器:

等效工具

 p0_tx_pri6: 614472

此致、

Matthias

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    我刚刚发现我们有'p0-rx-ptype-rrobin'。 这不是我们想要的。 关闭"p0-rx-ptype-rrobin"可修复上述行为。  

    这是一个错误吗? 否则、我无法真正解释为什么 'p0'设置会改变其他交换机端口的行为。  

    此致、

    Matthias

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Matthias、

    对于 Tx 数据包、p0是完成队列到端口优先级映射的位置。 因此、具有 "p0-rx-ptype-rrobin"可确保每个数据包具有相同的优先级0。

    此致、
    Tanmay