]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix ineffective metadata argument adjustment
authorMichael Baum <michaelba@nvidia.com>
Mon, 14 Feb 2022 09:34:53 +0000 (11:34 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 21 Feb 2022 10:36:38 +0000 (11:36 +0100)
commitad9d0c6395abf9793f328f571338fbe6a61f5ebe
tree48b68297bd79331e8730ffc6c09268ab6d542a64
parentdcbaafdc8f70987c6b610af7d43817b560fb646b
net/mlx5: fix ineffective metadata argument adjustment

In "dv_xmeta_en" devarg there is an option of dv_xmeta_en=3 which
engages tunnel offload mode. In E-Switch configuration, that mode
implicitly activates dv_xmeta_en=1.

The update according to E-switch support is done immediately after the
first parsing of the devargs, but there is another adjustment later.

This patch moves the adjustment after the second parsing.

Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c