OpenCloudOS-Kernel/drivers/infiniband/hw/irdma
Mustafa Ismail 9907526d25 RDMA/irdma: Initialize net_type before checking it
The av->net_type is not initialized before it is checked in
irdma_modify_qp_roce. This leads to an incorrect update to the ARP cache
and QP context. RoCEv2 connections might fail as result.

Set the net_type using rdma_gid_attr_network_type.

Fixes: 80005c43d4 ("RDMA/irdma: Use net_type to check network type")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20221122004410.1471-1-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-11-22 16:13:44 +02:00
..
Kconfig RDMA/irdma: Use correct kconfig symbol for AUXILIARY_BUS 2021-08-19 10:28:49 -03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
cm.c v5.20 pull request 2022-08-04 19:54:32 -07:00
cm.h RDMA/irdma: Add support for DSCP 2022-02-08 12:54:47 -04:00
ctrl.c RDMA/irdma: Make resource distribution algorithm more QP oriented 2022-07-18 10:39:50 +03:00
defs.h RDMA/irdma: Align AE id codes to correct flush code and event 2022-09-20 13:19:52 +03:00
hmc.c RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
hmc.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
hw.c RDMA/irdma: Align AE id codes to correct flush code and event 2022-09-20 13:19:52 +03:00
i40iw_hw.c RDMA/irdma: Do not advertise 1GB page size for x722 2022-07-11 03:03:50 -03:00
i40iw_hw.h
i40iw_if.c RDMA/irdma: Fix Passthrough mode in VM 2022-02-28 12:07:40 -04:00
icrdma_hw.c RDMA/irdma: Do not advertise 1GB page size for x722 2022-07-11 03:03:50 -03:00
icrdma_hw.h
irdma.h RDMA/irdma: Do not advertise 1GB page size for x722 2022-07-11 03:03:50 -03:00
main.c RDMA/irdma: Add support for address handle re-use 2022-03-15 16:22:55 -03:00
main.h RDMA/irdma: Add 2 level PBLE support for FMR 2022-07-18 10:39:28 +03:00
osdep.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
pble.c RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
pble.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
protos.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
puda.c RDMA/irdma: Remove the redundant variable 2022-04-04 10:50:24 -03:00
puda.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
trace.c RDMA/irdma: Add dynamic tracing for CM 2021-06-02 19:55:19 -03:00
trace.h RDMA/irdma: Add dynamic tracing for CM 2021-06-02 19:55:19 -03:00
trace_cm.h RDMA: Constify netdev->dev_addr accesses 2021-10-25 14:33:09 -03:00
type.h RDMA/irdma: Align AE id codes to correct flush code and event 2022-09-20 13:19:52 +03:00
uda.c RDMA/irdma: Make irdma_create_mg_ctx return a void 2022-02-28 11:32:42 -04:00
uda.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
uda_d.h RDMA/irdma: Add RoCEv2 UD OP support 2021-06-02 19:55:18 -03:00
uk.c RDMA/irdma: Fix RQ completion opcode 2022-11-17 10:41:28 +02:00
user.h RDMA/irdma: Fix RQ completion opcode 2022-11-17 10:41:28 +02:00
utils.c RDMA/irdma: Fix RQ completion opcode 2022-11-17 10:41:28 +02:00
verbs.c RDMA/irdma: Initialize net_type before checking it 2022-11-22 16:13:44 +02:00
verbs.h RDMA/irdma: Fix RQ completion opcode 2022-11-17 10:41:28 +02:00
ws.c RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00
ws.h RDMA/irdma: Remove enum irdma_status_code 2022-02-23 15:24:18 -04:00