From cef4100af05c2ef02bb824fdf63c4596b27c8dda Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 11 Sep 2023 22:58:31 -0700 Subject: [PATCH] modules/mqnic: Adjust default LFC watermark Signed-off-by: Alex Forencich --- modules/mqnic/mqnic_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mqnic/mqnic_port.c b/modules/mqnic/mqnic_port.c index 8dffc0fdd..1242b9a8e 100644 --- a/modules/mqnic/mqnic_port.c +++ b/modules/mqnic/mqnic_port.c @@ -55,7 +55,7 @@ struct mqnic_port *mqnic_create_port(struct mqnic_if *interface, int index, mqnic_port_set_tx_ctrl(port, 0); mqnic_port_set_rx_ctrl(port, 0); - mqnic_port_set_lfc_ctrl(port, max_t(u32, interface->rx_fifo_depth / 2, interface->max_rx_mtu * 2)); + mqnic_port_set_lfc_ctrl(port, interface->max_rx_mtu * 2); for (k = 0; k < 8; k++) mqnic_port_set_pfc_ctrl(port, k, 0);