OSDN Git Service

i40iw: Implement get_vector_affinity API
authorShiraz Saleem <shiraz.saleem@intel.com>
Fri, 2 Mar 2018 21:17:14 +0000 (15:17 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 6 Mar 2018 23:00:51 +0000 (16:00 -0700)
commit7e952b19eb638ffa2d511796e35c62a48ec1aef0
treee39c183135bb13bc37f1792aa278b28debad75ab
parent7de8b3576ab88bf8b3307eac2972d3b58dc28708
i40iw: Implement get_vector_affinity API

Storage ULPs (like NVMEoF) benefit from exposing affinity mapping
per completion vector to find the optimal multi-queue affinity
assignments. The ULPs call the verbs API ib_get_vector_affinity
introduced in commit c66cd353bbe ("RDMA/core: expose affinity mappings per
completion vector") to get the underlying devices affinity mappings.

Add support in driver to expose the affinity masks per MSI-X
completion vector.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_verbs.c