[dpdk-dev] [PATCH 3/3] keepalive: add rte_keepalive_xstats() and example

Remy Horton remy.horton at intel.com
Thu Jan 21 10:57:00 CET 2016


Morning,

On 20/01/2016 15:53, Harry van Haaren wrote:
> This patch adds a function that exposes keepalive statistics
> re-using the existing rte_eth_xstats struct. The function provides
> the client API the opportunity to read last-seen and status of
> each core.
>
> Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com>
  ...
>   #include <rte_keepalive.h>
>   #include <rte_malloc.h>
>   #include <rte_cycles.h>
> +#include <rte_ethdev.h>
> +
> +#define RTE_KEEPALIVE_NSTATS 2

Tried building this and am getting the following error:

== Build lib/librte_eal/linuxapp/eal
   CC rte_keepalive.o
/local/rhorton/dpdk-test/lib/librte_eal/common/rte_keepalive.c:42:24: 
fatal error: rte_ethdev.h: No such file or directory
compilation terminated.

If I remember correctly, there are limitations on the libs using each 
others' header files..


..Remy


More information about the dev mailing list