]> Git Repo - linux.git/commit
net/mlx5: Fix DCT creation bad flow
authorYishai Hadas <[email protected]>
Wed, 6 Mar 2019 17:20:50 +0000 (19:20 +0200)
committerJason Gunthorpe <[email protected]>
Mon, 18 Mar 2019 00:40:39 +0000 (21:40 -0300)
commitf84b66b9cce78e8f9d38204fdaa75f07c75f4911
tree92a4979c8d06ea3de21e710442619a72019cdf94
parent587443e7773e150ae29e643ee8f41a1eed226565
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: <[email protected]> # 4.15
Fixes: 57cda166bbe0 ("net/mlx5: Add DCT command interface")
Signed-off-by: Yishai Hadas <[email protected]>
Reviewed-by: Artemy Kovalyov <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/net/ethernet/mellanox/mlx5/core/qp.c
This page took 0.064012 seconds and 4 git commands to generate.