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: 80005c43d4c8 ("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
..
2022-08-04 19:54:32 -07:00
2022-02-08 12:54:47 -04:00
2021-06-02 19:55:19 -03:00
2021-06-02 19:55:19 -03:00
2021-06-02 19:55:18 -03:00
2022-11-17 10:41:28 +02:00
2022-11-17 10:41:28 +02:00
2022-11-17 10:41:28 +02:00
2022-11-17 10:41:28 +02:00
2022-02-23 15:24:18 -04:00
2022-02-23 15:24:18 -04:00