]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix E-Switch DV flow disabling
authorMichael Baum <michaelba@nvidia.com>
Wed, 2 Mar 2022 19:14:31 +0000 (21:14 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 7 Mar 2022 10:49:29 +0000 (11:49 +0100)
commit72d836b300b9e92201a924c4b540a68ae0570388
treeaa8ed755d882dd8de03ae626e1b42bb24e86fef8
parent98008ce6ec2f31c2e94c0eb39740c8178aeb8392
net/mlx5: fix E-Switch DV flow disabling

E-Switch DV flow is supported only when DV flow is supported and
enabled.

The mlx5_shared_dev_ctx_args_config() function ensures that when the
environment does not support DV, the "dv_esw_en" flag is turned off.
However, when the environment is supportive but the user has requested
to disable it, the "dv_esw_en" flag remains on and causes the PMD to try
to create an E-Switch through the Verbs engine.

This patch adds check to ensure that "dv_esw_en" flag will be turned off
when DV flow is disabled.

Fixes: a13ec19c1993 ("net/mlx5: add shared device context config structure")
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.c