[PATCH 5.10 258/381] RDMA/mlx5: Use correct device num_ports when modify DC