Performance degradation with hairpin and asynchronous API in DPDK

Hi.
I wrote a network function which uses hairpin queues to avoid DMA with DPDK library.
But with only one hairpin queue (self pinned), my connectX-6 shows not full link speed (~164Gbps).
When I use more than two hairpin queues, it shows full link speed (~200Gbps).

Also, when I use asynchronous rte_flow API which requires dv_flow_en=2, the performance drops more.
It became almost 10Gbps lower than when using synchronous API.

Is there any one who knows the reason?

Thank you in advance.

Hi @cerotyki ,

  1. You can try increasing the hairpin buffer size by modifying this parameter: “hp_buf_log_sz”. The maximum value is 19. See: https://doc.dpdk.org/guides/nics/mlx5.html

  2. The NIC can be loaded by these HW offloading features. We have internal debugging tools for such use cases that may help to locate the bottleneck / hot-spots in the HW. I recommend initiating a support case (based on your entitlement) for further debug.

Regards,
Chen

Thank you for your help.

I set hp_buf_log_sz as 19, so now one hairpin queue shows full link speed.