[v3,24/26] examples/vhost: use separate Rx and Tx queue limits
Checks
Commit Message
Update example app to use the new defines RTE_MAX_ETHPORT_TX_QUEUES
and RTE_MAX_ETHPORT_RX_QUEUES rather than the old define
RTE_MAX_QUEUES_PER_PORT.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
examples/vhost/main.c | 2 +-
examples/vhost/main.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -1891,7 +1891,7 @@ reset_dma(void)
for (i = 0; i < RTE_MAX_VHOST_DEVICE; i++) {
int j;
- for (j = 0; j < RTE_MAX_QUEUES_PER_PORT * 2; j++) {
+ for (j = 0; j < RTE_MAX_ETHPORT_RX_QUEUES + RTE_MAX_ETHPORT_TX_QUEUES; j++) {
dma_bind[i].dmas[j].dev_id = INVALID_DMA_ID;
dma_bind[i].dmas[j].async_enabled = false;
}
@@ -99,7 +99,7 @@ struct dma_info {
};
struct dma_for_vhost {
- struct dma_info dmas[RTE_MAX_QUEUES_PER_PORT * 2];
+ struct dma_info dmas[RTE_MAX_ETHPORT_RX_QUEUES + RTE_MAX_ETHPORT_TX_QUEUES];
uint32_t async_flag;
};