diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2020-05-29 23:15:04 +0200 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2020-05-29 23:52:44 +0200 |
commit | bbeee9bd1c845d06518fd8fab590de5490d460a2 (patch) | |
tree | 6aa6bb8233c5e96a28ba716ce9d1ac8d029e50f9 /VNFs/DPPD-PROX/prox_args.c | |
parent | 33d5f47e781c6986232378b7f8cadd17ac8894fe (diff) |
Fix compilation issues on old DPDK
Also fixed minor issues such as
- prevent using vdev on DPDK <= 17.05 as not supported
- potential segmentation fault after panic (if panic thrown early
in prox initialization)
Change-Id: I49a1962e95a4a44dddadd1fdd906e1b3b232465c
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/prox_args.c')
-rw-r--r-- | VNFs/DPPD-PROX/prox_args.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/prox_args.c b/VNFs/DPPD-PROX/prox_args.c index 43f9d5fb..d89481ab 100644 --- a/VNFs/DPPD-PROX/prox_args.c +++ b/VNFs/DPPD-PROX/prox_args.c @@ -2287,7 +2287,7 @@ int prox_setup_rte(const char *prog_name) } uint16_t port_id; for (int i = 0; i < n_deferred_ports; i++) { - if (rte_eth_dev_get_port_by_name(deferred_port[i].name, &port_id) != 0) { + if (prox_rte_eth_dev_get_port_by_name(deferred_port[i].name, &port_id) != 0) { plog_err("Did not find port name %s used while reading %s\n", deferred_port[i].name, deferred_port[i].is_rx_port ? "rx port" : "tx_port"); return -1; } |