linux/drivers/infiniband
Mustafa Ismail 24419777e9 RDMA/irdma: Fix RQ completion opcode
The opcode written by HW, in the RQ CQE, is the
RoCEv2/iWARP protocol opcode from the received
packet and not the SW opcode as currently assumed.
Fix this by returning the raw operation type and
queue type in the CQE to irdma_process_cqe and add
2 helpers set_ib_wc_op_sq set_ib_wc_op_rq to map
IRDMA HW op types to IB op types.

Note that for iWARP, only Write with Immediate is
supported so the opcode can only be IB_WC_RECV_RDMA_WITH_IMM
when there is immediate data present.

Fixes: b48c24c2d7 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20221115011701.1379-3-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-11-17 10:41:28 +02:00
..
core RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port 2022-11-15 09:56:45 +02:00
hw RDMA/irdma: Fix RQ completion opcode 2022-11-17 10:41:28 +02:00
sw RDMA/siw: Set defined status for work completion with undefined status 2022-11-15 16:47:00 -04:00
ulp IB/iser: open code iser_disconnected_handler 2022-10-19 10:38:35 +03:00
Kconfig RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00
Makefile