Skip to content

Commit

Permalink
netdev-dpdk: Add support for DPDK 16.07
Browse files Browse the repository at this point in the history
This commit introduces support for DPDK 16.07 and consequently breaks
compatibility with DPDK 16.04.

DPDK 16.07 introduces some changes to various APIs. These have been
updated in OVS, including:
* xstats API: changes to structure of xstats
* vhost API:  replace virtio-net references with 'vid'

Signed-off-by: Ciara Loftus <[email protected]>
Tested-by: Maxime Coquelin <[email protected]>
Tested-by: Robert Wojciechowicz <[email protected]>
Signed-off-by: Daniele Di Proietto <[email protected]>
  • Loading branch information
cloftus authored and ddiproietto committed Aug 4, 2016
1 parent e9217f5 commit 0a0f39d
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .travis/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fi

if [ "$DPDK" ]; then
if [ -z "$DPDK_VER" ]; then
DPDK_VER="16.04"
DPDK_VER="16.07"
fi
install_dpdk $DPDK_VER
if [ "$CC" = "clang" ]; then
Expand Down
8 changes: 4 additions & 4 deletions INSTALL.DPDK-ADVANCED.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for DPDK and OVS.
For IVSHMEM case, set `export DPDK_TARGET=x86_64-ivshmem-linuxapp-gcc`

```
export DPDK_DIR=/usr/src/dpdk-16.04
export DPDK_DIR=/usr/src/dpdk-16.07
export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
make install T=$DPDK_TARGET DESTDIR=install
```
Expand Down Expand Up @@ -340,7 +340,7 @@ For users wanting to do packet forwarding using kernel stack below are the steps
cd /usr/src/cmdline_generator
wget https://raw.githubusercontent.com/netgroup-polito/un-orchestrator/master/orchestrator/compute_controller/plugins/kvm-libvirt/cmdline_generator/cmdline_generator.c
wget https://raw.githubusercontent.com/netgroup-polito/un-orchestrator/master/orchestrator/compute_controller/plugins/kvm-libvirt/cmdline_generator/Makefile
export RTE_SDK=/usr/src/dpdk-16.04
export RTE_SDK=/usr/src/dpdk-16.07
export RTE_TARGET=x86_64-ivshmem-linuxapp-gcc
make
./build/cmdline_generator -m -p dpdkr0 XXX
Expand All @@ -364,7 +364,7 @@ For users wanting to do packet forwarding using kernel stack below are the steps
mount -t hugetlbfs nodev /dev/hugepages (if not already mounted)
# Build the DPDK ring application in the VM
export RTE_SDK=/root/dpdk-16.04
export RTE_SDK=/root/dpdk-16.07
export RTE_TARGET=x86_64-ivshmem-linuxapp-gcc
make
Expand All @@ -375,7 +375,7 @@ For users wanting to do packet forwarding using kernel stack below are the steps
## <a name="vhost"></a> 6. Vhost Walkthrough
DPDK 16.04 supports two types of vhost:
DPDK 16.07 supports two types of vhost:
1. vhost-user - enabled default
Expand Down
20 changes: 10 additions & 10 deletions INSTALL.DPDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The DPDK support of Open vSwitch is considered 'experimental'.

### Prerequisites

* Required: DPDK 16.04, libnuma
* Required: DPDK 16.07, libnuma
* Hardware: [DPDK Supported NICs] when physical ports in use

## <a name="build"></a> 2. Building and Installation
Expand All @@ -42,10 +42,10 @@ advanced install guide [INSTALL.DPDK-ADVANCED.md]

```
cd /usr/src/
wget http://dpdk.org/browse/dpdk/snapshot/dpdk-16.04.zip
unzip dpdk-16.04.zip
wget http://dpdk.org/browse/dpdk/snapshot/dpdk-16.07.zip
unzip dpdk-16.07.zip
export DPDK_DIR=/usr/src/dpdk-16.04
export DPDK_DIR=/usr/src/dpdk-16.07
cd $DPDK_DIR
```
Expand Down Expand Up @@ -372,9 +372,9 @@ can be found in [Vhost Walkthrough].
```
cd /root/dpdk/
wget http://dpdk.org/browse/dpdk/snapshot/dpdk-16.04.zip
unzip dpdk-16.04.zip
export DPDK_DIR=/root/dpdk/dpdk-16.04
wget http://dpdk.org/browse/dpdk/snapshot/dpdk-16.07.zip
unzip dpdk-16.07.zip
export DPDK_DIR=/root/dpdk/dpdk-16.07
export DPDK_TARGET=x86_64-native-linuxapp-gcc
export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
cd $DPDK_DIR
Expand Down Expand Up @@ -530,7 +530,7 @@ can be found in [Vhost Walkthrough].
</disk>
<disk type='dir' device='disk'>
<driver name='qemu' type='fat'/>
<source dir='/usr/src/dpdk-16.04'/>
<source dir='/usr/src/dpdk-16.07'/>
<target dev='vdb' bus='virtio'/>
<readonly/>
</disk>
Expand Down Expand Up @@ -600,9 +600,9 @@ can be found in [Vhost Walkthrough].
DPDK. It is recommended that users update Network Interface firmware to
match what has been validated for the DPDK release.
For DPDK 16.04, the list of validated firmware versions can be found at:
For DPDK 16.07, the list of validated firmware versions can be found at:
http://dpdk.org/doc/guides/rel_notes/release_16_04.html
http://dpdk.org/doc/guides/rel_notes/release_16.07.html
Bug Reporting:
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Post-v2.5.0
is enabled in DPDK.
* Basic connection tracking for the userspace datapath (no ALG,
fragmentation or NAT support yet)
* Support for DPDK 16.07
- Increase number of registers to 16.
- ovs-benchmark: This utility has been removed due to lack of use and
bitrot.
Expand Down
Loading

0 comments on commit 0a0f39d

Please sign in to comment.