* [PATCH rdma-next] RDMA/core: Delete not-implemented get_vector_affinity
@ 2026-02-26 13:44 Leon Romanovsky
2026-02-27 2:57 ` Kalesh Anakkur Purayil
2026-03-02 19:34 ` Leon Romanovsky
0 siblings, 2 replies; 3+ messages in thread
From: Leon Romanovsky @ 2026-02-26 13:44 UTC (permalink / raw)
To: Jason Gunthorpe, Leon Romanovsky; +Cc: linux-rdma, linux-kernel
From: Leon Romanovsky <leonro@nvidia.com>
No drivers implement .get_vector_affinity(), and no callers invoke
ib_get_vector_affinity(), so remove it.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
drivers/infiniband/core/device.c | 1 -
include/rdma/ib_verbs.h | 23 -----------------------
2 files changed, 24 deletions(-)
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index c7b227e2e657..8b1ec1f9c5e4 100644
--- a/drivers/infiniband/core/device.c
+++ b/drivers/infiniband/core/device.c
@@ -2749,7 +2749,6 @@ void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)
SET_DEVICE_OP(dev_ops, get_netdev);
SET_DEVICE_OP(dev_ops, get_numa_node);
SET_DEVICE_OP(dev_ops, get_port_immutable);
- SET_DEVICE_OP(dev_ops, get_vector_affinity);
SET_DEVICE_OP(dev_ops, get_vf_config);
SET_DEVICE_OP(dev_ops, get_vf_guid);
SET_DEVICE_OP(dev_ops, get_vf_stats);
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 1b77fd88d0fb..6e2e9019a540 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2420,8 +2420,6 @@ struct ib_device_ops {
int (*modify_device)(struct ib_device *device, int device_modify_mask,
struct ib_device_modify *device_modify);
void (*get_dev_fw_str)(struct ib_device *device, char *str);
- const struct cpumask *(*get_vector_affinity)(struct ib_device *ibdev,
- int comp_vector);
int (*query_port)(struct ib_device *device, u32 port_num,
struct ib_port_attr *port_attr);
int (*query_port_speed)(struct ib_device *device, u32 port_num,
@@ -4826,27 +4824,6 @@ static inline __be16 ib_lid_be16(u32 lid)
return cpu_to_be16((u16)lid);
}
-/**
- * ib_get_vector_affinity - Get the affinity mappings of a given completion
- * vector
- * @device: the rdma device
- * @comp_vector: index of completion vector
- *
- * Returns NULL on failure, otherwise a corresponding cpu map of the
- * completion vector (returns all-cpus map if the device driver doesn't
- * implement get_vector_affinity).
- */
-static inline const struct cpumask *
-ib_get_vector_affinity(struct ib_device *device, int comp_vector)
-{
- if (comp_vector < 0 || comp_vector >= device->num_comp_vectors ||
- !device->ops.get_vector_affinity)
- return NULL;
-
- return device->ops.get_vector_affinity(device, comp_vector);
-
-}
-
/**
* rdma_roce_rescan_device - Rescan all of the network devices in the system
* and add their gids, as needed, to the relevant RoCE devices.
---
base-commit: 4c97e6bb1f2311be3146d5f999702392fc17f91f
change-id: 20260226-get_vector_affinity-e9fd21f4b86e
Best regards,
--
Leon Romanovsky <leonro@nvidia.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH rdma-next] RDMA/core: Delete not-implemented get_vector_affinity
2026-02-26 13:44 [PATCH rdma-next] RDMA/core: Delete not-implemented get_vector_affinity Leon Romanovsky
@ 2026-02-27 2:57 ` Kalesh Anakkur Purayil
2026-03-02 19:34 ` Leon Romanovsky
1 sibling, 0 replies; 3+ messages in thread
From: Kalesh Anakkur Purayil @ 2026-02-27 2:57 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: Jason Gunthorpe, linux-rdma, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
On Thu, Feb 26, 2026 at 7:23 PM Leon Romanovsky <leon@kernel.org> wrote:
>
> From: Leon Romanovsky <leonro@nvidia.com>
>
> No drivers implement .get_vector_affinity(), and no callers invoke
> ib_get_vector_affinity(), so remove it.
>
> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
--
Regards,
Kalesh AP
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5509 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH rdma-next] RDMA/core: Delete not-implemented get_vector_affinity
2026-02-26 13:44 [PATCH rdma-next] RDMA/core: Delete not-implemented get_vector_affinity Leon Romanovsky
2026-02-27 2:57 ` Kalesh Anakkur Purayil
@ 2026-03-02 19:34 ` Leon Romanovsky
1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2026-03-02 19:34 UTC (permalink / raw)
To: Jason Gunthorpe, Leon Romanovsky; +Cc: linux-rdma, linux-kernel
On Thu, 26 Feb 2026 15:44:12 +0200, Leon Romanovsky wrote:
> No drivers implement .get_vector_affinity(), and no callers invoke
> ib_get_vector_affinity(), so remove it.
>
>
Applied, thanks!
[1/1] RDMA/core: Delete not-implemented get_vector_affinity
https://git.kernel.org/rdma/rdma/c/d5712689e05c9d
Best regards,
--
Leon Romanovsky <leon@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-02 19:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26 13:44 [PATCH rdma-next] RDMA/core: Delete not-implemented get_vector_affinity Leon Romanovsky
2026-02-27 2:57 ` Kalesh Anakkur Purayil
2026-03-02 19:34 ` Leon Romanovsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox