On Thu, Apr 20, 2023 at 04:39:06AM +0300, Mark Zhang wrote: > Just like other QP types, when modify DC, the port_num should be > compared with dev->num_ports, instead of HCA_CAP.num_ports. > Otherwise Multi-port vHCA on DC may not work. > > Fixes: 776a3906b692 ("IB/mlx5: Add support for DC target QP") > Signed-off-by: Mark Zhang <markzhang@xxxxxxxxxx> > Reviewed-by: Maor Gottlieb <maorg@xxxxxxxxxx> > --- > drivers/infiniband/hw/mlx5/qp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-next, thanks Jason