Hi Saeed,
mlx5_get_vector_affinity used to call pci_irq_get_affinity and after
reverting the patch that sets the device affinity via PCI_IRQ_AFFINITY
API, calling pci_irq_get_affinity becomes useless and it breaks RDMA
mlx5 users. To fix this, this patch provides an alternative way to
retrieve IRQ vector affinity using legacy IRQ API, following
smp_affinity read procfs implementation.
Fixes: 231243c82793 ("Revert mlx5: move affinity hints assignments to generic
code")
Fixes: a435393acafb ("mlx5: move affinity hints assignments to generic code")
Cc: Sagi Grimberg <s...@grimberg.me>
Cc: Qing Huang <qing.hu...@oracle.com>
Signed-off-by: Saeed Mahameed <sae...@mellanox.com>
I didn't have time to test it out thus far, I assume you tested it
though, so looks good to me,
Reviewed-by: Sagi Grimberg <s...@grimberg.me>