net: libwx: fix the incorrect display of the queue number
authorJiawen Wu <jiawenwu@trustnetic.com>
Tue, 1 Jul 2025 07:06:25 +0000 (15:06 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 21:44:55 +0000 (14:44 -0700)
commit5186ff7e1d0e26aaef998ba18b31c79c28d1441f
tree47165b767ab57af23bd22d19a010ea0608e5cc83
parent16ceda2ef683a50cd0783006c0504e1931cd8879
net: libwx: fix the incorrect display of the queue number

When setting "ethtool -L eth0 combined 1", the number of RX/TX queue is
changed to be 1. RSS is disabled at this moment, and the indices of FDIR
have not be changed in wx_set_rss_queues(). So the combined count still
shows the previous value. This issue was introduced when supporting
FDIR. Fix it for those devices that support FDIR.

Fixes: 34744a7749b3 ("net: txgbe: add FDIR info to ethtool ops")
Cc: stable@vger.kernel.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/A5C8FE56D6C04608+20250701070625.73680-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_lib.c