Mlx5_ctrl_flow returns -12

When starting up the interface in DPDK the mlx5_ctrl_flow function returns -12. With OFED version 5.3- does work. Any idea what could be the issue ? Was there any breaking change in 5.4-1.0.3 ?


Ubuntu 20.04 kernel 5.4.0-84
NIC Connect X5
driver: mlx5_core
version: 5.4-1.0.3
firmware-version: 16.32.1010 (MT_0000000008)

Using DPDK 17.11.04.

Hello customer_0815,

Thank you for posting your query on our community. There are no known issues with DPDK 17.11 and Mellanox OFED 5.4-1.0.3 at the moment.

  • Please ensure that DPDK 17.11 is installed properly on your system -
  • Please note that the Mellanox OFED installer script will have to be run with the following flags: ./mlnxofedinstall --dpdk
  • mlx5 library is set by enabling CONFIG_RTE_LIBRTE_MLX5_PMD=y in the DPDK configuration file prior to the DPDK compilation

The error code “-12” returned by the mlx5_ctrl_flow function in DPDK usually indicates an invalid argument. We will need more information to debug this issue further. If the issue still persists, I suggest you to collect a sysinfo-snapshot and open a support case for further investigation of the issue. The support ticket can be opened by emailing " "

Please note that an active support contract would be required for the same. If you do not have a current support contract, please reach out to our Contracts team at

Thank you,
-Nvidia Network Support