Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/core: Delete not-used create RWQ table function

The RWQ table is used for RSS uverbs and not in used for the kernel
consumers, delete ib_create_rwq_ind_table() routine that is not
called at all.

Link: https://lore.kernel.org/r/20200624105422.1452290-5-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

authored by

Leon Romanovsky and committed by
Jason Gunthorpe
14c2b896 5611074a

-42
-39
drivers/infiniband/core/verbs.c
··· 2410 2410 EXPORT_SYMBOL(ib_modify_wq); 2411 2411 2412 2412 /* 2413 - * ib_create_rwq_ind_table - Creates a RQ Indirection Table. 2414 - * @device: The device on which to create the rwq indirection table. 2415 - * @ib_rwq_ind_table_init_attr: A list of initial attributes required to 2416 - * create the Indirection Table. 2417 - * 2418 - * Note: The life time of ib_rwq_ind_table_init_attr->ind_tbl is not less 2419 - * than the created ib_rwq_ind_table object and the caller is responsible 2420 - * for its memory allocation/free. 2421 - */ 2422 - struct ib_rwq_ind_table *ib_create_rwq_ind_table(struct ib_device *device, 2423 - struct ib_rwq_ind_table_init_attr *init_attr) 2424 - { 2425 - struct ib_rwq_ind_table *rwq_ind_table; 2426 - int i; 2427 - u32 table_size; 2428 - 2429 - if (!device->ops.create_rwq_ind_table) 2430 - return ERR_PTR(-EOPNOTSUPP); 2431 - 2432 - table_size = (1 << init_attr->log_ind_tbl_size); 2433 - rwq_ind_table = device->ops.create_rwq_ind_table(device, 2434 - init_attr, NULL); 2435 - if (IS_ERR(rwq_ind_table)) 2436 - return rwq_ind_table; 2437 - 2438 - rwq_ind_table->ind_tbl = init_attr->ind_tbl; 2439 - rwq_ind_table->log_ind_tbl_size = init_attr->log_ind_tbl_size; 2440 - rwq_ind_table->device = device; 2441 - rwq_ind_table->uobject = NULL; 2442 - atomic_set(&rwq_ind_table->usecnt, 0); 2443 - 2444 - for (i = 0; i < table_size; i++) 2445 - atomic_inc(&rwq_ind_table->ind_tbl[i]->usecnt); 2446 - 2447 - return rwq_ind_table; 2448 - } 2449 - EXPORT_SYMBOL(ib_create_rwq_ind_table); 2450 - 2451 - /* 2452 2413 * ib_destroy_rwq_ind_table - Destroys the specified Indirection Table. 2453 2414 * @wq_ind_table: The Indirection Table to destroy. 2454 2415 */
-3
include/rdma/ib_verbs.h
··· 4422 4422 int ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata); 4423 4423 int ib_modify_wq(struct ib_wq *wq, struct ib_wq_attr *attr, 4424 4424 u32 wq_attr_mask); 4425 - struct ib_rwq_ind_table *ib_create_rwq_ind_table(struct ib_device *device, 4426 - struct ib_rwq_ind_table_init_attr* 4427 - wq_ind_table_init_attr); 4428 4425 int ib_destroy_rwq_ind_table(struct ib_rwq_ind_table *wq_ind_table); 4429 4426 4430 4427 int ib_map_mr_sg(struct ib_mr *mr, struct scatterlist *sg, int sg_nents,