Commit a78549d5 authored by Wen Zhiwei's avatar Wen Zhiwei
Browse files

Revert "Revert "net: libwx: fix alloc msix vectors failed""

maillist inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB93K4


CVE: NA

--------------------------------

This reverts commit 9e20ec25.
commit 937d46ecc5f9 ("net: wangxun: add ethtool_ops for
channel number") changed NIC misc irq from most significant
bit to least significant bit, this patch has been integrated.
Misc irq vector is vector 0, driver need to set affinity params
.pre_vectors = 1.

Fixes: 9e20ec25 ("Revert "net: libwx: fix alloc msix vectors failed"")
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent 8a512be8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1598,7 +1598,7 @@ static void wx_set_num_queues(struct wx *wx)
 */
static int wx_acquire_msix_vectors(struct wx *wx)
{
	struct irq_affinity affd = {0, };
	struct irq_affinity affd = { .pre_vectors = 1 };
	int nvecs, i;

	/* We start by asking for one vector per queue pair */