RDMA/irdma: Align AE id codes to correct flush code and event
authorSindhu-Devale <sindhu.devale@intel.com>
Wed, 7 Sep 2022 19:13:23 +0000 (14:13 -0500)
committerLeon Romanovsky <leon@kernel.org>
Tue, 20 Sep 2022 10:19:52 +0000 (13:19 +0300)
commit7f51a961f8c6b84752a48e950074a8c4a0808d91
tree40e9d5d313f498c88164d0d2476cc1db069d73e3
parente866025b3b1557f9bf6ab1770f297fe6d90e0417
RDMA/irdma: Align AE id codes to correct flush code and event

A number of asynchronous event (AE) ids were not aligned to the
correct flush_code and event_type. Fix these up so that the
correct IBV error and event codes are returned to application.

Also, add handling for new AE ids like IRDMA_AE_INVALID_REQUEST to
return the correct WC error code.

Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definitions")
Signed-off-by: Sindhu-Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20220907191324.1173-2-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/defs.h
drivers/infiniband/hw/irdma/hw.c
drivers/infiniband/hw/irdma/type.h
drivers/infiniband/hw/irdma/user.h
drivers/infiniband/hw/irdma/utils.c
drivers/infiniband/hw/irdma/verbs.c