IB/rdmavt: Add device structure allocation
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Fri, 22 Jan 2016 21:04:45 +0000 (13:04 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:27 +0000 (20:37 -0500)
commitff6acd69518e0a84bd9c9b7f1bd4313f7076db97
tree9fe2ff22af58c3e5adf2bf49fa0c6d1f341f6b7b
parente85ec33d820e1f3f763a46f9fd41230ca0ce40c6
IB/rdmavt: Add device structure allocation

This patch adds rdmavt device structure allocation in rdamvt. The
ib_device alloc is now done in rdmavt instead of the driver. Drivers
need to tell rdmavt the number of ports when calling.

A side of effect of this patch is fixing a bug with port initialization
where the device structure port array was allocated over top of an
existing one.

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
include/rdma/rdma_vt.h
This page took 0.026501 seconds and 5 git commands to generate.