RDMA/irdma: Fix op_type reporting in CQEs
authorSindhu Devale <sindhu.devale@intel.com>
Tue, 25 Jul 2023 15:54:37 +0000 (10:54 -0500)
committerLeon Romanovsky <leon@kernel.org>
Wed, 26 Jul 2023 11:58:42 +0000 (14:58 +0300)
commit3bfb25fa2b5bb9c29681e6ac861808f4be1331a9
tree8a5843851ab72f78b5d895bdfc38aefee1549a4c
parent5c719d7aef298e9b727f39b45e88528a96df3620
RDMA/irdma: Fix op_type reporting in CQEs

The op_type field CQ poll info structure is incorrectly
filled in with the queue type as opposed to the op_type
received in the CQEs. The wrong opcode could be decoded
and returned to the ULP.

Copy the op_type field received in the CQE in the CQ poll
info structure.

Fixes: 24419777e943 ("RDMA/irdma: Fix RQ completion opcode")
Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20230725155439.1057-1-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/uk.c