diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-02-05 17:24:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-22 17:40:05 +0300 |
commit | 1ae2c3ae98b8b825211a189eb0fef36a9245c0ff (patch) | |
tree | 637c422905e06ea2f23bdda053e6bab42cf6038c /drivers/ptp/ptp_sysfs.c | |
parent | da40ab64894b7ee76ad3955c18b627e184372505 (diff) | |
download | linux-1ae2c3ae98b8b825211a189eb0fef36a9245c0ff.tar.xz |
mlx5: fix mlx5_get_vector_affinity to start from completion vector 0
commit 2572cf57d75a7f91835d9a38771e9e76d575d122 upstream.
The consumers of this routine expects the affinity map of of vector
index relative to the first completion vector. The upper layers are
not aware of internal/private completion vectors that mlx5 allocates
for its own usage.
Hence, return the affinity map of vector index relative to the first
completion vector.
Fixes: 05e0cc84e00c ("net/mlx5: Fix get vector affinity helper function")
Reported-by: Logan Gunthorpe <logang@deltatee.com>
Tested-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Cc: <stable@vger.kernel.org> # v4.15
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ptp/ptp_sysfs.c')
0 files changed, 0 insertions, 0 deletions