Skip to content

Commit

Permalink
DPDK: Update documentation and travis build for vhost.
Browse files Browse the repository at this point in the history
DPDK vhost support is mandatory to compile OVS with DPDK.  This commit
updates INSTALL.DPDK.md and the travis build procedure to reflect that.

Signed-off-by: Daniele Di Proietto <[email protected]>
Acked-by: Pravin B Shelar <[email protected]>
  • Loading branch information
ddiproietto authored and Pravin B Shelar committed Mar 20, 2015
1 parent 3c94676 commit 777cb78
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function install_dpdk()
fi
find ./ -type f | xargs sed -i 's/max-inline-insns-single=100/max-inline-insns-single=400/'
sed -ri 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' config/common_linuxapp
sed -ri 's,(CONFIG_RTE_LIBRTE_VHOST=).*,\1y,' config/common_linuxapp
sed -ri '/CONFIG_RTE_LIBNAME/a CONFIG_RTE_BUILD_FPIC=y' config/common_linuxapp
sed -ri '/EXECENV_CFLAGS = -pthread -fPIC/{s/$/\nelse ifeq ($(CONFIG_RTE_BUILD_FPIC),y)/;s/$/\nEXECENV_CFLAGS = -pthread -fPIC/}' mk/exec-env/linuxapp/rte.vars.mk
make config CC=gcc T=x86_64-native-linuxapp-gcc
Expand Down
3 changes: 3 additions & 0 deletions .travis/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
sudo apt-get update -qq
sudo apt-get install -qq libssl-dev llvm-dev
sudo apt-get install -qq gcc-multilib
if [ "$DPDK" ]; then
sudo apt-get install -qq libfuse-dev
fi

git clone git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git
cd sparse && make && sudo make install PREFIX=/usr && cd ..
21 changes: 9 additions & 12 deletions INSTALL.DPDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ OVS needs a system with 1GB hugepages support.
Building and Installing:
------------------------

Required DPDK 1.8.0
Optional `fuse`, `fuse-devel`
Required DPDK 1.8.0, `fuse`, `fuse-devel` (`libfuse-dev` on Debian/Ubuntu)

1. Configure build & install DPDK:
1. Set `$DPDK_DIR`
Expand All @@ -32,7 +31,12 @@ Optional `fuse`, `fuse-devel`
`CONFIG_RTE_BUILD_COMBINE_LIBS=y`
Then run `make install` to build and isntall the library.
Update `config/common_linuxapp` so that DPDK is built with vhost
libraries:
`CONFIG_RTE_LIBRTE_VHOST=y`
Then run `make install` to build and install the library.
For default install without IVSHMEM:
`make install T=x86_64-native-linuxapp-gcc`
Expand Down Expand Up @@ -300,18 +304,11 @@ in future releases when supported in DPDK and that vhost-cuse will eventually
be deprecated. See [DPDK Docs] for more info on vhost.
Prerequisites:
1. DPDK 1.8 with vhost support enabled and recompile OVS as above.
Update `config/common_linuxapp` so that DPDK is built with vhost
libraries:
`CONFIG_RTE_LIBRTE_VHOST=y`
2. Insert the Cuse module:
1. Insert the Cuse module:
`modprobe cuse`
3. Build and insert the `eventfd_link` module:
2. Build and insert the `eventfd_link` module:
`cd $DPDK_DIR/lib/librte_vhost/eventfd_link/`
`make`
Expand Down

0 comments on commit 777cb78

Please sign in to comment.