RDMA/irdma: Drop a local in irdma_sc_get_next_aeqe
authorSindhu Devale <sindhu.devale@intel.com>
Tue, 25 Jul 2023 15:55:02 +0000 (10:55 -0500)
committerLeon Romanovsky <leon@kernel.org>
Wed, 26 Jul 2023 12:05:36 +0000 (15:05 +0300)
commit8cfc99dada35b8889f76fbe28115dcde1a6f0874
tree9573eb3d7789863d4ac50edf9551b9730619e602
parent24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d
RDMA/irdma: Drop a local in irdma_sc_get_next_aeqe

Drop the local wqe_idx in irdma_sc_get_next_aeqe and instead
store the wqe_idx in the info structure for all asynchronous events(AE)
received. There is no reason it should be tied to a specific AE source.

Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20230725155505.1069-2-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/ctrl.c