net/mlx5: fix Rx interrupt handling and cleanup
authorDekel Peled <dekelp@mellanox.com>
Mon, 27 Jul 2020 08:50:47 +0000 (11:50 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commit1ccc4790148f6d6c8f8f45f45345a919b45b25a9
tree67666ac0f0d9f0c6c9db10a81b4604f49601af0f
parent71fa6a99643d167df38605d53c3573a435107d01
net/mlx5: fix Rx interrupt handling and cleanup

Recent patch added creation of Rx CQ using DevX API.
The reading of events from DevX channel was not done correctly.
This patch fixes the event reading, using the correct data structure.
Cleanup after CQ creation, in case of error, is also updated.

Fixes: 08d1838f645a ("net/mlx5: implement CQ for Rx using DevX API")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_rxq.c