diff options
Diffstat (limited to 'VNFs/DPPD-PROX')
-rw-r--r-- | VNFs/DPPD-PROX/prox_port_cfg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/prox_port_cfg.c b/VNFs/DPPD-PROX/prox_port_cfg.c index 481fa368..d6cede9e 100644 --- a/VNFs/DPPD-PROX/prox_port_cfg.c +++ b/VNFs/DPPD-PROX/prox_port_cfg.c @@ -676,11 +676,13 @@ static void init_port(struct prox_port_cfg *port_cfg) strcmp(port_cfg->short_name, "i40e") && strcmp(port_cfg->short_name, "i40e_vf") && strcmp(port_cfg->short_name, "vmxnet3")) { - for (uint8_t i = 0; i < 16; ++i) { + for (uint8_t i = 0; i < port_cfg->n_rxq; ++i) { ret = rte_eth_dev_set_rx_queue_stats_mapping(port_id, i, i); if (ret) { plog_info("\t\trte_eth_dev_set_rx_queue_stats_mapping() failed: error %d\n", ret); } + } + for (uint8_t i = 0; i < port_cfg->n_txq; ++i) { ret = rte_eth_dev_set_tx_queue_stats_mapping(port_id, i, i); if (ret) { plog_info("\t\trte_eth_dev_set_tx_queue_stats_mapping() failed: error %d\n", ret); |