1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

modules/mqnic: Adjust default LFC watermark

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2023-09-11 22:58:31 -07:00
parent 5e53dd10ea
commit cef4100af0

View File

@ -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);