Infiniband: add missing values in queue pair attributes

Bug #1709681 reported by Long Li on 2017-08-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-azure (Ubuntu)
Nominated for Xenial by Marcelo Cerri

Bug Description

On Azure, the RDMA device is exposed as a iWARP device. There is only one such device in each VM, they are set at port 1.

A recent patch 5ecce4c9b17b("Check port number supplied by user verbs cmds") starts checking on port_num in qp attributes passed from user mode libraries. This requires that this value is correctly populated when calling verb ib_modify_qp. Otherwise this call will fail.

The following patch fixed it. Please pick it up for linux-azure.

commit a62ab66b13a0f9bcb17b7b761f6670941ed5cd62
Author: Ismail, Mustafa <email address hidden>
Date: Fri Jul 14 09:41:31 2017 -0500

    RDMA/core: Initialize port_num in qp_attr

    Initialize the port_num for iWARP in rdma_init_qp_attr.

    Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds")
    Cc: <email address hidden> # v2.6.14+
    Reviewed-by: Steve Wise <email address hidden>
    Signed-off-by: Mustafa Ismail <email address hidden>
    Tested-by: Mike Marciniszyn <email address hidden>
    Signed-off-by: Doug Ledford <email address hidden>

Marcelo Cerri (mhcerri) on 2017-08-11
Changed in linux-azure (Ubuntu):
status: New → In Progress
Marcelo Cerri (mhcerri) wrote :
Changed in linux-azure (Ubuntu):
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers