diff mbox

[18/37] IB/rdmavt: Add get port immutable stub

Message ID 20151207204416.8144.60005.stgit@phlsvslse11.ph.intel.com (mailing list archive)
State Superseded
Headers show

Commit Message

Dennis Dalessandro Dec. 7, 2015, 8:44 p.m. UTC
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>
---
 drivers/infiniband/sw/rdmavt/vt.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/infiniband/sw/rdmavt/vt.c b/drivers/infiniband/sw/rdmavt/vt.c
index f91def1..8dd2fbd 100644
--- a/drivers/infiniband/sw/rdmavt/vt.c
+++ b/drivers/infiniband/sw/rdmavt/vt.c
@@ -204,6 +204,12 @@  static int rvt_dealloc_ucontext(struct ib_ucontext *context)
 	return -EINVAL;
 }
 
+static int rvt_get_port_immutable(struct ib_device *ibdev, u8 port_num,
+				  struct ib_port_immutable *immutable)
+{
+	return -EINVAL;
+}
+
 /*
  * Check driver override. If driver passes a value use it, otherwise we use our
  * own value.
@@ -225,6 +231,7 @@  int rvt_register_device(struct rvt_dev_info *rdi)
 	CDR(rdi, query_gid);
 	CDR(rdi, alloc_ucontext);
 	CDR(rdi, dealloc_ucontext);
+	CDR(rdi, get_port_immutable);
 
 	/* Queue Pairs */
 	CDR(rdi, create_qp);