net/mlx5: fix vport index in port action
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Sun, 17 Nov 2019 08:48:26 +0000 (08:48 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commit85c4bcbcc57326cc63ad52082fa090cdfc7855a0
treeb98ceef37ac14bb09efe270d57cd0c3b9107367b
parent54534725d2f329ed6e45aa7400e0c2c21aa1b69d
net/mlx5: fix vport index in port action

The rdma_core routine mlx5dv_dr_create_flow_action_dest_vport()
requires the vport id parameter to create port action.
The register c[0] value was used to deduce the port id value
and it fails in bonding configuration. The correct way is
to apply vport_num value queried from the rdma_core library.

Fixes: f07341e7aed3 ("net/mlx5: update source and destination vport translations")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_flow_dv.c