htb offload support in i40e (intel nic)
Subsystems (2)
Hi,
I saw that the htb offload needs additional changes in the mlx5 driver to support it. I couldn't find any info regarding the htb offload support on any other drivers/vendors like intel nic (i40e) We use multiple XL710 that seems to support hardware tc queues:
qdisc noqueue 0: dev lo root refcnt 2
qdisc mq 0: dev enp65s0f1 root
qdisc fq_codel 0: dev enp65s0f1 parent :18 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :17 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :16 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :15 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :14 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :13 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :12 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :11 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :10 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :f limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :e limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :d limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :c limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :b limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :a limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :9 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :8 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :7 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :6 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :5 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :4 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :3 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :2 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: dev enp65s0f1 parent :1 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Is this enough to support the htb offload or we must wait for the driver update to support it?
Greetings,
Stanisław Czech
Quoted 33 lines · Stanisław Czech
Hi,
I saw that the htb offload needs additional changes in the mlx5 driver to support it. I couldn't find any info regarding the htb offload support on any other
drivers/vendorslike intel nic (i40e) We use multiple XL710 that seems to support hardware tc queues:qdisc noqueue 0: dev lo root refcnt 2
qdisc mq 0: dev enp65s0f1 root
qdiscfq_codel0: dev enp65s0f1 parent :18 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :17 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :16 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :15 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :14 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :13 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :12 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :11 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :10 limit 10240p flows 1024 quantum 1514 target 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :f limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :e limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :d limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :c limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :b limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :a limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :9 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :8 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :7 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :6 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :5 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :4 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :3 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :2 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
qdiscfq_codel0: dev enp65s0f1 parent :1 limit 10240p flows 1024 quantum 1514 t arget 5ms interval 100msmemory_limit32Mb ecndrop_batch64
Quoted 1 line
Is this enough to support the htb offload or we must wait for the driver update to support it?
Hi,
The HTB offload requires hardware and driver support. The NIC has to support hierarchical rate limiting, and the driver has to implement the API used by sch_htb to communicate the hierarchy. Mellanox NICs starting from ConnectX-5 should support the HTB offload (see the original commit message for more details).
So far, in-tree drivers other than mlx5 don't implement the HTB API. I'm not aware whether the corresponding hardware has the needed capabilities - that is a question to developers from Intel.
Quoted 7 lines
Greetings,
Stanisław Czech