From d67a8616fa85ee015a3b01358b2fc1c9aab9ef92 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 13 Sep 2019 14:19:38 -0700 Subject: [PATCH] Enable all queues --- modules/mqnic/mqnic_netdev.c | 7 ------- modules/mqnic/mqnic_port.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/mqnic/mqnic_netdev.c b/modules/mqnic/mqnic_netdev.c index 1b9ea7964..1409b699c 100644 --- a/modules/mqnic/mqnic_netdev.c +++ b/modules/mqnic/mqnic_netdev.c @@ -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); diff --git a/modules/mqnic/mqnic_port.c b/modules/mqnic/mqnic_port.c index c6dadb1b2..61954698d 100644 --- a/modules/mqnic/mqnic_port.c +++ b/modules/mqnic/mqnic_port.c @@ -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); }