Skip to content

Commit

Permalink
Update relevant artifacts to add support for DPDK v2.2.0.
Browse files Browse the repository at this point in the history
Following changes have been applied:
 - INSTALL.DPDK.md: change DPDK version number,
 - build.sh: change DPDK version number.

Signed-off-by: Michal Weglicki <[email protected]>
Signed-off-by: Daniele Di Proietto <[email protected]>
  • Loading branch information
mweglicx authored and ddiproietto committed Jan 26, 2016
1 parent 363b34f commit 02ab4b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi

if [ "$DPDK" ]; then
if [ -z "$DPDK_VER" ]; then
DPDK_VER="2.1.0"
DPDK_VER="2.2.0"
fi
install_dpdk $DPDK_VER
if [ "$CC" = "clang" ]; then
Expand Down
10 changes: 5 additions & 5 deletions INSTALL.DPDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ OVS needs a system with 1GB hugepages support.
Building and Installing:
------------------------

Required: DPDK 2.1
Required: DPDK 2.2
Optional (if building with vhost-cuse): `fuse`, `fuse-devel` (`libfuse-dev`
on Debian/Ubuntu)

1. Configure build & install DPDK:
1. Set `$DPDK_DIR`

```
export DPDK_DIR=/usr/src/dpdk-2.1
export DPDK_DIR=/usr/src/dpdk-2.2
cd $DPDK_DIR
```
Expand Down Expand Up @@ -473,7 +473,7 @@ the vswitchd.
DPDK vhost:
-----------
DPDK 2.1 supports two types of vhost:
DPDK 2.2 supports two types of vhost:
1. vhost-user
2. vhost-cuse
Expand All @@ -494,7 +494,7 @@ with OVS.
DPDK vhost-user Prerequisites:
-------------------------
1. DPDK 2.1 with vhost support enabled as documented in the "Building and
1. DPDK 2.2 with vhost support enabled as documented in the "Building and
Installing section"
2. QEMU version v2.1.0+
Expand Down Expand Up @@ -576,7 +576,7 @@ with OVS.
DPDK vhost-cuse Prerequisites:
-------------------------
1. DPDK 2.1 with vhost support enabled as documented in the "Building and
1. DPDK 2.2 with vhost support enabled as documented in the "Building and
Installing section"
As an additional step, you must enable vhost-cuse in DPDK by setting the
following additional flag in `config/common_linuxapp`:
Expand Down
4 changes: 2 additions & 2 deletions lib/netdev-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,9 +1480,9 @@ netdev_dpdk_get_stats(const struct netdev *netdev, struct netdev_stats *stats)
stats->rx_dropped = rte_stats.rx_nombuf + rte_stats.imissed;
stats->collisions = UINT64_MAX;

stats->rx_length_errors = rte_stats.ibadlen;
stats->rx_length_errors = UINT64_MAX;
stats->rx_over_errors = UINT64_MAX;
stats->rx_crc_errors = rte_stats.ibadcrc;
stats->rx_crc_errors = UINT64_MAX;
stats->rx_frame_errors = UINT64_MAX;
stats->rx_fifo_errors = UINT64_MAX;
stats->rx_missed_errors = rte_stats.imissed;
Expand Down

0 comments on commit 02ab4b1

Please sign in to comment.