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

modules/mqnic: More sensible default queue counts

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2023-05-03 01:38:23 -07:00
parent 8faefe19cd
commit eaceb0bfc7

View File

@ -567,8 +567,8 @@ struct net_device *mqnic_create_netdev(struct mqnic_if *interface, int index, in
// associate interface resources
priv->if_features = interface->if_features;
priv->txq_count = mqnic_res_get_count(interface->txq_res);
priv->rxq_count = mqnic_res_get_count(interface->rxq_res);
priv->txq_count = min_t(u32, mqnic_res_get_count(interface->txq_res), 256);
priv->rxq_count = min_t(u32, mqnic_res_get_count(interface->rxq_res), num_online_cpus());
priv->tx_ring_size = mqnic_num_txq_entries;
priv->rx_ring_size = mqnic_num_rxq_entries;