Skip to content

Commit 077ee7e

Browse files
Jiawen Wukuba-moo
authored andcommitted
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: [email protected] Fixes: 883b598 ("net: wangxun: add ethtool_ops for ring parameters") 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 70654f4 commit 077ee7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/wangxun/libwx/wx_type.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ enum WX_MSCA_CMD_value {
426426
#define WX_MIN_RXD 128
427427
#define WX_MIN_TXD 128
428428

429-
/* Number of Transmit and Receive Descriptors must be a multiple of 8 */
430-
#define WX_REQ_RX_DESCRIPTOR_MULTIPLE 8
431-
#define WX_REQ_TX_DESCRIPTOR_MULTIPLE 8
429+
/* Number of Transmit and Receive Descriptors must be a multiple of 128 */
430+
#define WX_REQ_RX_DESCRIPTOR_MULTIPLE 128
431+
#define WX_REQ_TX_DESCRIPTOR_MULTIPLE 128
432432

433433
#define WX_MAX_JUMBO_FRAME_SIZE 9432 /* max payload 9414 */
434434
#define VMDQ_P(p) p

0 commit comments

Comments
 (0)