Skip to content

Commit 67cf362

Browse files
sagigrimbergdledford
authored andcommitted
rxe: expose num_possible_cpus() cnum_comp_vectors
They're completely logical, so don't impose an artificial limitation. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Acked-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent af5df5f commit 67cf362

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/infiniband/sw/rxe/rxe_param.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ enum rxe_device_param {
114114
RXE_MAX_UCONTEXT = 512,
115115

116116
RXE_NUM_PORT = 1,
117-
RXE_NUM_COMP_VECTORS = 1,
118117

119118
RXE_MIN_QP_INDEX = 16,
120119
RXE_MAX_QP_INDEX = 0x00020000,

drivers/infiniband/sw/rxe/rxe_verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ int rxe_register_device(struct rxe_dev *rxe)
12391239
dev->owner = THIS_MODULE;
12401240
dev->node_type = RDMA_NODE_IB_CA;
12411241
dev->phys_port_cnt = 1;
1242-
dev->num_comp_vectors = RXE_NUM_COMP_VECTORS;
1242+
dev->num_comp_vectors = num_possible_cpus();
12431243
dev->dev.parent = rxe_dma_device(rxe);
12441244
dev->local_dma_lkey = 0;
12451245
addrconf_addr_eui48((unsigned char *)&dev->node_guid,

0 commit comments

Comments
 (0)