net/mlx5: fix getting metadata register for E-Switch domain
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Thu, 21 Nov 2019 17:59:42 +0000 (17:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commit8723061aa65e2d1764994d810940d61c1f5948ee
tree2bcda6a7d3f93fc922536a942cd664fd197ead2d
parent7c1852e48f75cebd0213698f4d7d4137a45d3a34
net/mlx5: fix getting metadata register for E-Switch domain

The metadata register used for META item/action within E-Switch
steering domain should be altered depending on dv_xmeta_en
devarg value.

Fixes: 3e8edd0ef848 ("net/mlx5: update metadata register ID query")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow.c