v2:
 Fix linking with dpdk shared libraries

v1:
This RFC shows how to build a DDF module with DPDK support while application
and odp have no DPDK support.

Step 1: Run 'build-example-ddf-dpdk' script.
e.g:
$ ./scripts/build-example-ddf-dpdk

This will:
 - clone dpdk
 - configure dpdk to build as shared libs
 - build dpdk
 - build odp with 'with-example-dpdk-path' option: this path to dpdk install
folder will be used by examples applications (if needed)

Only 'ddf_ifs' is built with dpdk support.

Step 2: Set LD_LIBRARY_PATH
 # export LD_LIBRARY_PATH=<odp path>/odp/lib/.libs:<odp 
path>/odp/dpdk/x86_64-native-linuxapp-gcc/lib

Step 3: Run the application
 # ODP_SYSCONFIG_FILE=<odp path>/odp/example/ddf_ifs/odp.conf 
./example/ddf_app/.libs/odp_ddf_app ddf_pktio_name

Bogdan Pricope (1):
  ddf: example: build module with dpdk support

 example/ddf_app/odp_ddf_app.c        |  14 +++-
 example/ddf_ifs/Makefile.am          |   9 ++-
 example/ddf_ifs/ddf_ifs_enumr_dpdk.c | 126 ++++++++++++++++++++++++++++++++++-
 example/m4/configure.m4              |   2 +
 example/m4/example_dpdk.m4           |  43 ++++++++++++
 scripts/build-example-ddf-dpdk       |  33 +++++++++
 6 files changed, 223 insertions(+), 4 deletions(-)
 create mode 100644 example/m4/example_dpdk.m4
 create mode 100755 scripts/build-example-ddf-dpdk

-- 
1.9.1

Reply via email to