linux/drivers/infiniband/hw/vmw_pvrdma
Bryan Tan 9f206f7398 RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC
The PVRDMA device HW interface defines network_hdr_type according to an
old definition of the internal kernel rdma_network_type enum that has
since changed, resulting in the wrong rdma_network_type being reported.

Fix this by explicitly defining the enum used by the PVRDMA device and
adding a function to convert the pvrdma_network_type to rdma_network_type
enum.

Cc: stable@vger.kernel.org # 5.10+
Fixes: 1c15b4f2a4 ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type")
Link: https://lore.kernel.org/r/1611026189-17943-1-git-send-email-bryantan@vmware.com
Reviewed-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Bryan Tan <bryantan@vmware.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-01-19 20:17:27 -04:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
pvrdma.h RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC 2021-01-19 20:17:27 -04:00
pvrdma_cmd.c
pvrdma_cq.c RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC 2021-01-19 20:17:27 -04:00
pvrdma_dev_api.h
pvrdma_doorbell.c
pvrdma_main.c Merge branch 'for-rc' into rdma.git 2020-11-17 15:20:26 -04:00
pvrdma_misc.c RDMA/umem: Replace for_each_sg_dma_page with rdma_umem_for_each_dma_block 2020-09-09 15:33:17 -03:00
pvrdma_mr.c RDMA/umem: Split ib_umem_num_pages() into ib_umem_num_dma_blocks() 2020-09-11 10:24:53 -03:00
pvrdma_qp.c RDMA: Check create_flags during create_qp 2020-10-26 19:27:59 -03:00
pvrdma_ring.h
pvrdma_srq.c RDMA: Check srq_type during create_srq 2020-10-26 19:27:58 -03:00
pvrdma_verbs.c RDMA: Restore ability to fail on AH destroy 2020-09-09 13:57:22 -03:00
pvrdma_verbs.h RDMA/vmw_pvrdma: Fix the active_speed and phys_state value 2020-11-02 20:00:10 -04:00