IB/rdmavt: Add get port immutable stub
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Wed, 6 Jan 2016 17:59:38 +0000 (09:59 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:09 +0000 (20:37 -0500)
This adds the get port immutable verbs call.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/vt.c

index 41cfd8432f7cace5df91075f5f48730f0c8630a3..a122ee8341c97dc5056c1152f3cdac1afec97179 100644 (file)
@@ -198,6 +198,12 @@ static int rvt_dealloc_ucontext(struct ib_ucontext *context)
        return -EOPNOTSUPP;
 }
 
+static int rvt_get_port_immutable(struct ib_device *ibdev, u8 port_num,
+                                 struct ib_port_immutable *immutable)
+{
+       return -EOPNOTSUPP;
+}
+
 /*
  * Check driver override. If driver passes a value use it, otherwise we use our
  * own value.
@@ -219,6 +225,7 @@ int rvt_register_device(struct rvt_dev_info *rdi)
        CHECK_DRIVER_OVERRIDE(rdi, query_gid);
        CHECK_DRIVER_OVERRIDE(rdi, alloc_ucontext);
        CHECK_DRIVER_OVERRIDE(rdi, dealloc_ucontext);
+       CHECK_DRIVER_OVERRIDE(rdi, get_port_immutable);
 
        /* Queue Pairs */
        CHECK_DRIVER_OVERRIDE(rdi, create_qp);