diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-06 19:19:34 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-11-12 18:33:44 +0100 |
commit | 8ecfca68dc4cbee1272a0161e3f2fb9387dc6930 (patch) | |
tree | ee7c3fee670980ffec1b05d60a633f6e94e41918 /net/rds | |
parent | RDMA/core: Remove ib_dma_{alloc,free}_coherent (diff) | |
download | linux-8ecfca68dc4cbee1272a0161e3f2fb9387dc6930.tar.xz linux-8ecfca68dc4cbee1272a0161e3f2fb9387dc6930.zip |
RDMA: Lift ibdev_to_node from rds to common code
Lift the ibdev_to_node from rds to common code and document it.
Link: https://lore.kernel.org/r/20201106181941.1878556-4-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h index 8dfff43cf07f..c23a11d9ad36 100644 --- a/net/rds/ib.h +++ b/net/rds/ib.h @@ -264,13 +264,6 @@ struct rds_ib_device { int *vector_load; }; -static inline int ibdev_to_node(struct ib_device *ibdev) -{ - struct device *parent; - - parent = ibdev->dev.parent; - return parent ? dev_to_node(parent) : NUMA_NO_NODE; -} #define rdsibdev_to_node(rdsibdev) ibdev_to_node(rdsibdev->dev) /* bits for i_ack_flags */ |