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

Enable all queues

This commit is contained in:
Alex Forencich 2019-09-13 14:19:38 -07:00
parent 49103b9df9
commit d67a8616fa
2 changed files with 1 additions and 8 deletions

View File

@ -391,13 +391,6 @@ int mqnic_init_netdev(struct mqnic_dev *mdev, int port, u8 __iomem *hw_addr)
if (priv->port_count > MQNIC_MAX_PORTS)
priv->port_count = MQNIC_MAX_PORTS;
// TODO use all queues
priv->event_queue_count = 1;
priv->tx_queue_count = 1;
priv->tx_cpl_queue_count = 1;
priv->rx_queue_count = 1;
priv->rx_cpl_queue_count = 1;
netif_set_real_num_tx_queues(ndev, priv->tx_queue_count);
netif_set_real_num_rx_queues(ndev, priv->rx_queue_count);

View File

@ -74,7 +74,7 @@ int mqnic_create_port(struct mqnic_priv *priv, struct mqnic_port **port_ptr, int
// enable schedulers
iowrite32(0xffffffff, port->hw_addr+MQNIC_PORT_REG_SCHED_ENABLE);
for (k = 0; k < 32; k++)
for (k = 0; k < priv->tx_queue_count; k++)
{
iowrite32(1, port->hw_addr+port->sched_offset+k*4);
}