diff options
author | Patrice Buriez <patrice.buriez@chenapan.org> | 2023-01-02 12:51:54 +0000 |
---|---|---|
committer | Patrice Buriez <patrice.buriez@chenapan.org> | 2023-01-02 12:51:54 +0000 |
commit | a085fb09d70d024413844df9d1c343fdc28ded1d (patch) | |
tree | dc3cbe28ca83b205102d4da0ad82e111a8ab0bfb /VNFs/DPPD-PROX/stats_port.c | |
parent | 8912be9d61200a3ad8b30a33e362be963eb8c4bb (diff) |
Restore rw_reg and hw_direct_stats
Note that DPDK 21.11 and above must be built with 'enable_driver_sdk'
option enabled, in order to expose the rte_eth_devices array, now marked
as internal. See
http://doc.dpdk.org/guides-21.11/rel_notes/release_21_11.html#abi-changes
for details. This is done by supplying the '-Denable_driver_sdk=true'
command line parameter, either to 'meson setup', or later on to 'meson
configure', before running 'ninja' and 'ninja install'.
Signed-off-by: Patrice Buriez <patrice.buriez@chenapan.org>
Change-Id: I20db8971818a29ec495b6d8d79cf46f2204631a5
Diffstat (limited to 'VNFs/DPPD-PROX/stats_port.c')
-rw-r--r-- | VNFs/DPPD-PROX/stats_port.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/stats_port.c b/VNFs/DPPD-PROX/stats_port.c index 3580602c..fb6cf10a 100644 --- a/VNFs/DPPD-PROX/stats_port.c +++ b/VNFs/DPPD-PROX/stats_port.c @@ -18,6 +18,9 @@ #include <stdio.h> #include <rte_version.h> +#if RTE_VERSION >= RTE_VERSION_NUM(21,11,0,0) +#include <ethdev_driver.h> // Please configure DPDK with meson option -Denable_driver_sdk=true +#endif #include <rte_ethdev.h> #include <rte_cycles.h> #include <rte_byteorder.h> |