path: root/include
diff options
authorSagi Grimberg <sagi@grimberg.me>2017-07-13 11:09:43 +0300
committerDoug Ledford <dledford@redhat.com>2017-08-08 14:58:03 -0400
commit24c5dc6610e8a3764fcb885cc3284c12ff1513de (patch)
tree4e63a3a4d5cff3d270598feb0d617c146ae20a41 /include
parent40b24403f33ed8e9401b087e25f46d002fc8f396 (diff)
block: Add rdma affinity based queue mapping helper
Like pci and virtio, we add a rdma helper for affinity spreading. This achieves optimal mq affinity assignments according to the underlying rdma device affinity maps. Reviewed-by: Jens Axboe <axboe@fb.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/blk-mq-rdma.h b/include/linux/blk-mq-rdma.h
new file mode 100644
index 000000000000..b4ade198007d
--- /dev/null
+++ b/include/linux/blk-mq-rdma.h
@@ -0,0 +1,10 @@
+struct blk_mq_tag_set;
+struct ib_device;
+int blk_mq_rdma_map_queues(struct blk_mq_tag_set *set,
+ struct ib_device *dev, int first_vec);
+#endif /* _LINUX_BLK_MQ_RDMA_H */

Privacy Policy