On Mon, Jan 18, 2021 at 07:16:29PM -0800, Bryan Tan wrote:
The PVRDMA device defines network_hdr_type according to an old definition of the 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: 1c15b4f2a42f ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type") Reviewed-by: Adit Ranadive aditr@vmware.com Signed-off-by: Bryan Tan bryantan@vmware.com
Changelog:
- v0->v1: Moved new enum to uapi header and added Cc as per Jason.
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h | 14 ++++++++++++++ drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c | 2 +- include/uapi/rdma/vmw_pvrdma-abi.h | 7 +++++++ 3 files changed, 22 insertions(+), 1 deletion(-)
Applied to for-next, thanks
Jason