net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address
authorMark Zhang <markzhang@nvidia.com>
Mon, 14 Dec 2020 01:38:40 +0000 (03:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jan 2021 13:16:58 +0000 (14:16 +0100)
commit39e86d3ca489e568d3532bbe06be84c5893d290d
treef19aa7b2785cdacb4f1d5c41e8e977bb2f30f0ef
parentd6d3f9de7a06b5937bbf2b64a99a97232fcdfb94
net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address

[ Upstream commit 0f2dcade69f2af56b74bce432e48ff3957830ce2 ]

In multi-port mode, FW reports syndrome 0x2ea48 (invalid vhca_port_number)
if the port_num is not 1 or 2.

Fixes: 80f09dfc237f ("net/mlx5: Eswitch, enable RoCE loopback traffic")
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/rdma.c