Skip to content

Commit 5186ff7

Browse files
Jiawen Wukuba-moo
authored andcommitted
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: 34744a7 ("net: txgbe: add FDIR info to ethtool ops") Cc: [email protected] Signed-off-by: Jiawen Wu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 16ceda2 commit 5186ff7

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/wangxun/libwx

1 file changed

+1
-0
lines changed

drivers/net/ethernet/wangxun/libwx/wx_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,7 @@ static void wx_set_rss_queues(struct wx *wx)
17051705

17061706
clear_bit(WX_FLAG_FDIR_HASH, wx->flags);
17071707

1708+
wx->ring_feature[RING_F_FDIR].indices = 1;
17081709
/* Use Flow Director in addition to RSS to ensure the best
17091710
* distribution of flows across cores, even when an FDIR flow
17101711
* isn't matched.

0 commit comments

Comments
 (0)