AnsweredAssumed Answered

LS1028ardb - Qbv on switch port

Question asked by bhavya r on Jul 10, 2019
Latest reply on Jul 21, 2019 by Yiping Wang

Hello All,

 

I have few query on running Qbv on switch port LS1028ardb layerspace hardware.

 

1) For endpoints using tc command to assign priority->class->tx-queue mapping.

But i am not aware of configuring tx-queue for switch port.

If ethtool is done ("ethtool -S swp1"), it doesn't show multiple tx queue listed

 

Command used on end points is as below:

 tc qdisc add dev eno0 root mqprio num_tc 8 map 0 1 6 7 2 3 4 5 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 hw 1

 

 

2) Is qbvset commad working properly for switch  ports?

When queried on switch port, configuration values showed is not correct.

 

 

[2019-07-10 17:22:29.389] root@localhost:~# cat > qbv.txt << EOF                                                                               
[2019-07-10 17:22:36.277] > t0 11111111b 5600
[2019-07-10 17:22:42.601] > t1 00000000b 1000000
[2019-07-10 17:23:13.398] > EOF


root@localhost:~# tsntool qbvset --device swp0 --entryfile qbv.txt              
[2019-07-10 17:23:23.772] tsntool: invalid option -- '-'
[2019-07-10 17:23:23.775] tsntool: invalid option -- 'd'
[2019-07-10 17:23:23.778] echo reply:test netlink
[2019-07-10 17:23:23.780] echo reply:1
[2019-07-10 17:23:23.798] echo reply:swp0
[2019-07-10 17:23:23.799] echo reply:0
[2019-07-10 17:23:23.814] root@localhost:~#
[2019-07-10 17:23:24.270] root@localhost:~#

 

Qbvget is showing wrong period time

[2019-07-10 17:27:10.862] root@localhost:~# tsntool qbvget --device swp0
[2019-07-10 17:27:16.133] tsntool: invalid option -- '-'
[2019-07-10 17:27:16.136] tsntool: invalid option -- 'd'
[2019-07-10 17:27:16.139] echo reply:test netlink
[2019-07-10 17:27:16.141] echo reply:1
[2019-07-10 17:27:16.149] echo reply:swp0
[2019-07-10 17:27:16.149] tsn: len: 0088 type: 0005 data:
[2019-07-10 17:27:16.149]   level2: nla->_len: 88 type: 11
[2019-07-10 17:27:16.150]
[2019-07-10 17:27:16.150]    listcount = 2
[2019-07-10 17:27:16.151]    level3: nla->_len: 28 type: 6
[2019-07-10 17:27:16.154]
[2019-07-10 17:27:16.154]      entryid = 0
[2019-07-10 17:27:16.156]      gate = ff
[2019-07-10 17:27:16.157]      timeperiod = 989680
[2019-07-10 17:27:16.160]    level3: nla->_len: 28 type: 6
[2019-07-10 17:27:16.163]
[2019-07-10 17:27:16.163]      entryid = 1
[2019-07-10 17:27:16.164]      gate = 00
[2019-07-10 17:27:16.166]      timeperiod = ffff0000
[2019-07-10 17:27:16.168]    cycletime = 98ac60
[2019-07-10 17:27:16.170]    basetime = 39b19ca7ec6
[2019-07-10 17:27:16.173]    configchangetime = 39b1a632b26
[2019-07-10 17:27:16.176]    currenttime = 4581713e8e6
[2019-07-10 17:27:16.178]    listmax = 40
[2019-07-10 17:27:16.180] json structure:
[2019-07-10 17:27:16.181]  {
[2019-07-10 17:27:16.182]       "oper": {
[2019-07-10 17:27:16.183]               "listcount":    2,
[2019-07-10 17:27:16.184]               "list": {
[2019-07-10 17:27:16.185]                       "entryid":      0,
[2019-07-10 17:27:16.187]                       "gate": 255,
[2019-07-10 17:27:16.188]                       "timeperiod":   10000000
[2019-07-10 17:27:16.191]               },
[2019-07-10 17:27:16.191]               "list": {
[2019-07-10 17:27:16.192]                       "entryid":      1,
[2019-07-10 17:27:16.194]                       "gate": 0,
[2019-07-10 17:27:16.195]                       "timeperiod":   4294901760
[2019-07-10 17:27:16.198]               },
[2019-07-10 17:27:16.198]               "cycletime":    10005600,
[2019-07-10 17:27:16.201]               "basetime":     3964687515334
[2019-07-10 17:27:16.203]       },
[2019-07-10 17:27:16.204]       "configchangetime":     3964697520934,
[2019-07-10 17:27:16.207]       "currenttime":  4776390813926,
[2019-07-10 17:27:16.212]       "listmax":      64
[2019-07-10 17:27:16.212] }

Outcomes