Command Line Reference
RoCE Configuration
Easy RoCE
12 min
easy roce view easy roce view table 1 easy roce view table 1 easy roce view command purpose show qos roce \[ all | summary | roce profile name ] display "easy roce" configuration show counters qos roce interfaceethernet interface name queue queue id display roce statistics of the interface clear counters qos roce clear roce statistics of all interfaces show qos roce \[all|summary| show qos roce \[all|summary| roce profile name ] \[command] show qos roce \[ all | summary | roce profile name ] \[purpose] display roce configuration \[view] global configuration view \[notes] cx732q n v2 devices currently do not support \[use cases] sonic# show qos roce notice displaying configuraions of in use roce profiles \==> roce profile roce lossless 5m low latency | roce policy map roce lossless 5m low latency 100g <== + + + + \| | operational | description | +====================+=================+=====================================================+ \| mode | lossless | qos roce mode | + + + \| status | bind 0/0 0/252 | qos roce binding status | + + + + \| cable length | 5m | cable length in meters for qos roce lossless config | + + + + \| congestion control | | | \| congestion mode | ecn | congestion control mode | \| enabled tc | 3,4 | congestion control config enabled traffic class | \| max threshold | 1025024 | congestion control config max threshold | \| min threshold | 15360 | congestion control config max threshold | + + + + \| pfc | | | \| pfc priority | 3,4 | pfc enabled switch priority | \| tx status | enabled | pfc rx status | \| rx status | enabled | pfc tx status | + + + + \| trust | | | \| trust mode | dscp | trust setting for packet classification | + + + + \====> roce dscp >sp mapping configurations <==== + + + \| dscp | switch priority | +=========================+===================+ \| 0,1,2,3,4,5,6,7 | 0 | \| 8,9,10,11,12,13,14,15 | 1 | \| 16,17,18,19,20,21,22,23 | 2 | \| 24,25,26,27,28,29,30,31 | 3 | \| 32,33,34,35,36,37,38,39 | 4 | \| 40,41,42,43,44,45,46,47 | 5 | \| 48,49,50,51,52,53,54,55 | 6 | \| 56,57,58,59,60,61,62,63 | 7 | + + + \====> roce sp >tc mapping & ets configurations <==== + + + + \| switch priority | mode | weight | +===================+========+==========+ \| 6 | sp | | \| 7 | sp | | + + + + \====> pfc profile configurations <==== + + + \| profile name | switch priority | +===========================================+===================+ \| egress lossless profile | 3,4 | \| egress lossy profile | 0,1,2,5,6,7 | \| ingress lossy profile | 0,1,2,5,6,7 | \| pg lossless 10000 40m profile | 3,4 | \| roce lossless 5m low latency 100g profile | 3,4 | + + + sonic# show qos roce summary + + + + \| profile | mode | status | +==============================+==========+==========+ \| roce lossless 5m low latency | lossless | bind | + + + + show counters qos roce interface ethernet show counters qos roce interface ethernet interface name queue queue id \[command] show counters qos roce interface ethernet interface name queue queue id \[purpose] display roce statistics of the interface \[parameters] parameter description interface name interface name (eg 0/1) queue id queue id, the range is \[0,7] \[view] global configuration view \[notes] cx732q n v2 devices currently do not support \[use cases] sonic# show counters qos roce interface ethernet 0/32 queue 3 operational \ roce states ethernet32 3 pfc stats \ pfc rx stats 0 \ pfc tx stats 402 \ pg stats \ total packet 11,380,786,999 \ total bytes 1,456,740,735,872 \ drop packet 0 \ curr occupancy 0 ecn stats \ ecn stats 0 \ ecn buffer \ shared use watermark byte 0 \ total use watermark byte 0 \ total use count byte 0 queue stats \ counter pkts 0 \ counter bytes 0 \ drop pkts 0 \ drop bytes 0 \ counterrate pkts 0 0 \ counterrate bytes 0 0 \ droprate pkts 0 0 \ droprate bytes 0 0 \ occupancy bytes 0 \ sharedoccupancy bytes 0 clear counters qos roce clear counters qos roce \[command] clear counters qos roce \[purpose] clear roce statistics of all interfaces \[view] global configuration view \[notes] cx732q n v2 devices currently do not support \[use cases] sonic# show counters qos roce interface 0/32 queue 3 easy roce config easy roce config table 2 easy roce config table 2 easy roce config command purpose qos roce { lossless | lossy } \[ cable length length ] \[ incast level level ] \[ traffic model model ] enable "easy roce", and create a configuration template qos service policy { roce lossless | roce lossy | roce profile name } apply "easy roce" configuration to all interfaces qos roce roce profile name enter the roce template configuration view bind interface { all | ethernet interface name | range interface name list } apply the roce configuration template to the specified interfaces qos roce {lossless|lossy} \[cable length qos roce {lossless|lossy} \[cable length length ] \[incast level level ] \[traffic model model ] \[command] qos roce { lossless | lossy } \[ cable length length ] \[ incast level level ] \[ traffic model model ] \[purpose] enable "easy roce", and create a configuration template \[parameters] parameter description length specify the cable length, choose from 5m/40m/100m/300m level specify the traffic incast model, choose from low / medium / high model specify the traffic model, choose from throughput / latency / balance \[view] global configuration view \[notes] to enhance the user friendliness of asternos in roce scenarios, we support "easy roce" configuration and management there are two modes in roce scenario "lossless ethernet" and "lossy ethernet" in lossless mode, the system will automatically generate lossless configuration templates, with default dscp mapping, enabling pfc and ecn for queue 3 and 4, and setting strict priority scheduling for queue 6 and 7 at the same time, it is supported for you to enter the corresponding configuration view to modify the parameters run command no qos roce { lossless | lossy } to remove "easy roce" configuration cx732q n v2 devices currently do not support \[use cases] sonic(config)# qos roce lossless or sonic(config)# qos roce lossless cable length 5m incast level low traffic model latency notice creating new roce profile roce lossless 5m low latency qos service policy {roce lossless|roce lossy| qos service policy {roce lossless|roce lossy| roce profile name } \[command] qos service policy { roce lossless | roce lossy | roce profile name } \[purpose] apply "easy roce" configuration to all interfaces \[parameters] parameter description roce profile name specify the name of roce profile \[view] global configuration view \[notes] run command no qos service policy { roce lossless | roce lossy | roce profile name } to unbind all interfaces cx732q n v2 devices currently do not support \[use cases] sonic(config)# qos service policy roce lossless notice interface 0/0,0/4 has already bind other policy, pleace manually bind roce lossless to the interfaces or sonic(config)# qos service policy roce lossless 5m low latency notice roce is not supported on interface 0/256 0/257, skipping notice binding roce profile roce lossless 5m low latency to interface 0/0 0/252 qos roce qos roce roce profile name \[command] qos roce roce profile name \[purpose] enter the roce template configuration view \[parameters] parameter description roce profile name specify the name of roce profile \[view] global configuration view \[notes] run command no qos roce roce profile name to delete the template you created cx732q n v2 devices currently do not support \[use cases] sonic(config)# qos roce roce lossless or sonic(config)# qos roce roce lossless 5m low latency bind interface {all|ethernet bind interface {all|ethernet interface name |range interface name list } \[command] bind interface { all | ethernet interface name | range interface name list } \[purpose] apply the roce configuration template to the specified interfaces \[parameters] parameter description all bind to all interfaces interface name specify the certain interface name id (eg 0/1) interface name list specify the name list (eg 0/0 0/64,0/128) \[view] roce template configuration view \[notes] run command no bind interface { all | ethernet interface name | range interface name list } to unbind cx732q n v2 devices currently do not support \[use cases] sonic(config)# qos roce roce lossless 5m low latency sonic(config roce lossless 5m low latency)# bind interface range 0/0 0/12 notice binding roce profile roce lossless 5m low latency to interface 0/0 0/12
