diff options
author | Duanqiang Wen <duanqiangwen@net-swift.com> | 2024-04-18 05:15:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-19 13:27:45 +0300 |
commit | 69197dfc64007b5292cc960581548f41ccd44828 (patch) | |
tree | 693c58da03dc1f7b91d60716f543a73b058cf007 /drivers/net/vxlan | |
parent | 7586c8501d090609c6eb1af6ba05e3ed68806c83 (diff) | |
download | linux-69197dfc64007b5292cc960581548f41ccd44828.tar.xz |
net: libwx: fix alloc msix vectors failed
driver needs queue msix vectors and one misc irq vector,
but only queue vectors need irq affinity.
when num_online_cpus is less than chip max msix vectors,
driver will acquire (num_online_cpus + 1) vecotrs, and
call pci_alloc_irq_vectors_affinity functions with affinity
params without setting pre_vectors or post_vectors, it will
cause return error code -ENOSPC.
Misc irq vector is vector 0, driver need to set affinity params
.pre_vectors = 1.
Fixes: 3f703186113f ("net: libwx: Add irq flow functions")
Signed-off-by: Duanqiang Wen <duanqiangwen@net-swift.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan')
0 files changed, 0 insertions, 0 deletions