]> git.hungrycats.org Git - linux/commit
net: libwx: fix VMDQ mask for 1-queue mode
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 26 Jun 2026 09:25:30 +0000 (17:25 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Jun 2026 09:27:18 +0000 (11:27 +0200)
commit6ab752e0b59b825c127d5c86438bee1e8b1641ea
treed4310bc26a137b987cde4683e5cc8476f51925d7
parenta7c6debfec17381329b094bd75560a1e57a5533a
net: libwx: fix VMDQ mask for 1-queue mode

In wx_set_vmdq_queues(), the VMDQ mask was not set for the devices not
supporting WX_FLAG_MULTI_64_FUNC, i.e., NGBE devices. A mask of 0 causes
__ALIGN_MASK(1, ~vmdq->mask) to return 0, which incorrectly sets
q_per_pool to 0 in wx_write_qde().

Fix the VMDQ 1-queue mask to 0x7F then ensures that __ALIGN_MASK(1,
~0x7F) correctly evaluates to 1.

Fixes: c52d4b898901 ("net: libwx: Redesign flow when sriov is enabled")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Link: https://patch.msgid.link/161F704D2C983E2C+20260626092530.551028-1-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/wangxun/libwx/wx_lib.c
drivers/net/ethernet/wangxun/libwx/wx_type.h