net: libwx: fix number of Rx and Tx descriptors
BugLink: https://bugs.launchpad.net/bugs/2086138
commit 077ee7e6b13a2b6668196ed01a22023549e19381 upstream.
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: 883b5984a5 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
b7f659ba07
commit
d8e0e1f4e6
@@ -424,9 +424,9 @@ enum WX_MSCA_CMD_value {
|
||||
#define WX_MIN_RXD 128
|
||||
#define WX_MIN_TXD 128
|
||||
|
||||
/* Number of Transmit and Receive Descriptors must be a multiple of 8 */
|
||||
#define WX_REQ_RX_DESCRIPTOR_MULTIPLE 8
|
||||
#define WX_REQ_TX_DESCRIPTOR_MULTIPLE 8
|
||||
/* Number of Transmit and Receive Descriptors must be a multiple of 128 */
|
||||
#define WX_REQ_RX_DESCRIPTOR_MULTIPLE 128
|
||||
#define WX_REQ_TX_DESCRIPTOR_MULTIPLE 128
|
||||
|
||||
#define WX_MAX_JUMBO_FRAME_SIZE 9432 /* max payload 9414 */
|
||||
#define VMDQ_P(p) p
|
||||
|
||||
Reference in New Issue
Block a user