[dpdk-dev] [PATCH v6 4/6] enicpmd: pmd specific code

Wodkowski, PawelX pawelx.wodkowski at intel.com
Thu Nov 27 15:49:53 CET 2014


> diff --git a/lib/librte_pmd_enic/enic_main.c b/lib/librte_pmd_enic/enic_main.c
> new file mode 100644
> index 0000000..c047cc8
> --- /dev/null
> +++ b/lib/librte_pmd_enic/enic_main.c
> @@ -0,0 +1,1266 @@
> +/*
> + * Copyright 2008-2014 Cisco Systems, Inc.  All rights reserved.


> +#ident "$Id$"
> +
> +#include <stdio.h>
> +
> +#include <sys/stat.h>
> +#include <sys/mman.h>
> +#include <fcntl.h>
> +#include <libgen.h>
> +#ifdef RTE_EAL_VFIO
> +#include <linux/vfio.h>
> +#endif
> +

This gives compilation error: lib/librte_pmd_enic/enic_main.c:43:24: fatal error: linux/vfio.h: No such file or directory

Ubuntu 12.04
Linux grizzly 3.11.0-26-generic #45~precise1-Ubuntu SMP Tue Jul 15 04:02:35 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

lib/librte_eal/linuxapp/eal/eal_vfio.h gives some tips how vfio might be included.

Pawel


More information about the dev mailing list