RDMA/ocrdma: Report correct count of interrupt vectors while registering ocrdma device

Fix ocrdma_register_device to initialize correct number of interrupt
vectors in device pointer.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Devesh Sharma 2014-12-18 14:12:58 +05:30 коммит произвёл Roland Dreier
Родитель 9ba1377daa
Коммит 0c0eacdc9d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -239,7 +239,7 @@ static int ocrdma_register_device(struct ocrdma_dev *dev)
dev->ibdev.node_type = RDMA_NODE_IB_CA; dev->ibdev.node_type = RDMA_NODE_IB_CA;
dev->ibdev.phys_port_cnt = 1; dev->ibdev.phys_port_cnt = 1;
dev->ibdev.num_comp_vectors = 1; dev->ibdev.num_comp_vectors = dev->eq_cnt;
/* mandatory verbs. */ /* mandatory verbs. */
dev->ibdev.query_device = ocrdma_query_device; dev->ibdev.query_device = ocrdma_query_device;