Signed-off-by: Ian Dolzhansky <ian.dolzhansky@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Rx interrupt = Y
Queue start/stop = Y
Runtime Rx queue setup = Y
Rx interrupt = Y
Queue start/stop = Y
Runtime Rx queue setup = Y
+Runtime Tx queue setup = Y
MTU update = Y
Jumbo frame = Y
Promiscuous mode = Y
MTU update = Y
Jumbo frame = Y
Promiscuous mode = Y
* Support for Rx and Tx queues start and stop.
* Support for Rx and Tx queues deferred start.
* Support for Rx and Tx queues start and stop.
* Support for Rx and Tx queues deferred start.
- * Support for runtime Rx queues setup.
+ * Support for runtime Rx and Tx queues setup.
* **Added ability to switch queue deferred start flag on testpmd app.**
* **Added ability to switch queue deferred start flag on testpmd app.**
ETH_RSS_UDP |
ETH_RSS_TCP,
.dev_capa =
ETH_RSS_UDP |
ETH_RSS_TCP,
.dev_capa =
- RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP,
+ RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
+ RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP,
}
for (i = 0; i < dev->data->nb_tx_queues; i++) {
txq = dev->data->tx_queues[i];
}
for (i = 0; i < dev->data->nb_tx_queues; i++) {
txq = dev->data->tx_queues[i];
- if (!txq->info.conf.tx_deferred_start)
+ if (txq != NULL && !txq->info.conf.tx_deferred_start)
dev->data->tx_queue_state[i] =
RTE_ETH_QUEUE_STATE_STARTED;
}
dev->data->tx_queue_state[i] =
RTE_ETH_QUEUE_STATE_STARTED;
}
dev->data->rx_queue_state[i] =
RTE_ETH_QUEUE_STATE_STOPPED;
for (i = 0; i < dev->data->nb_tx_queues; i++)
dev->data->rx_queue_state[i] =
RTE_ETH_QUEUE_STATE_STOPPED;
for (i = 0; i < dev->data->nb_tx_queues; i++)
- dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
+ if (dev->data->tx_queues[i] != NULL)
+ dev->data->tx_queue_state[i] =
+ RTE_ETH_QUEUE_STATE_STOPPED;