]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix DCT creation bad flow
authorYishai Hadas <yishaih@mellanox.com>
Wed, 6 Mar 2019 17:20:50 +0000 (19:20 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Mar 2019 00:40:39 +0000 (21:40 -0300)
commit31343f2aa7daeff2593fd9f2ca2c791ffcdc3fc7
tree92a4979c8d06ea3de21e710442619a72019cdf94
parent0dac3ff74cd97c3ff1a6a9ad5aea6cb81e0e24ad
net/mlx5: Fix DCT creation bad flow

In case the DCT creation command has succeeded a DRAIN must be issued
before calling DESTROY.

In addition, the original code used the wrong parameter for the DESTROY
command, 'in' instead of 'din', which caused another creation try instead
of destroying.

Cc: <stable@vger.kernel.org> # 4.15
Fixes: 5c3953fbbff7 ("net/mlx5: Add DCT command interface")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/qp.c