[hermon] Adjust Ethernet work queue size

Hermon Ethernet work queues have more RX than TX entries, unlike most
other drivers.  This is possibly the source of some stochastic
deadlocks previously experienced with this driver.

Update the sizes to be in line with other drivers, and make them
slightly larger for better performance.  These new queue sizes have
been found to work well with ConnectX-3 hardware.

Signed-off-by: Christian Iversen <ci@iversenit.dk>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/245/head
Christian Iversen 2021-01-27 00:03:01 +01:00 committed by Michael Brown
parent e62c3e3513
commit d948ac6c61
1 changed files with 3 additions and 3 deletions

View File

@ -3274,13 +3274,13 @@ static struct hermon_port_type hermon_port_type_ib = {
*/
/** Number of Hermon Ethernet send work queue entries */
#define HERMON_ETH_NUM_SEND_WQES 2
#define HERMON_ETH_NUM_SEND_WQES 16
/** Number of Hermon Ethernet receive work queue entries */
#define HERMON_ETH_NUM_RECV_WQES 4
#define HERMON_ETH_NUM_RECV_WQES 8
/** Number of Hermon Ethernet completion entries */
#define HERMON_ETH_NUM_CQES 8
#define HERMON_ETH_NUM_CQES 32
/**
* Transmit packet via Hermon Ethernet device