net: libwx: fix number of Rx and Tx descriptors
authorJiawen Wu <jiawenwu@trustnetic.com>
Tue, 10 Sep 2024 09:56:29 +0000 (17:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Sep 2024 22:59:43 +0000 (15:59 -0700)
commit077ee7e6b13a2b6668196ed01a22023549e19381
tree8e2ea105c429c9d03e036e53912e26b6a3f54bb7
parent70654f4c212e83898feced125d91ebb3695950d8
net: libwx: fix number of Rx and Tx descriptors

The number of transmit and receive descriptors must be a multiple of 128
due to the hardware limitation. If it is set to a multiple of 8 instead of
a multiple 128, the queues will easily be hung.

Cc: stable@vger.kernel.org
Fixes: 883b5984a5d2 ("net: wangxun: add ethtool_ops for ring parameters")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240910095629.570674-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_type.h