Add DPDK 16.04-rc2 support

Can be used by specifying DPDK_VERSION=16.04-rc2 in the make command line

Change-Id: I657b44d7ca22f1ef57756e7703088020fab12bc6
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2016-03-29 22:37:02 +02:00
committed by Gerrit Code Review
parent 23650e6cad
commit 0df78dda5a
3 changed files with 8 additions and 4 deletions

View File

@ -31,7 +31,7 @@ RPM_DEPENDS = redhat-lsb glibc-static java-1.8.0-openjdk-devel
RPM_DEPENDS += openssl-devel https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm apr-devel RPM_DEPENDS += openssl-devel https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm apr-devel
EPEL_DEPENDS = libconfuse-devel ganglia-devel EPEL_DEPENDS = libconfuse-devel ganglia-devel
ifneq ("$(wildcard $(STARTUP_DIR)/startup.conf),"") ifneq ($(wildcard $(STARTUP_DIR)/startup.conf),)
STARTUP_CONF ?= $(STARTUP_DIR)/startup.conf STARTUP_CONF ?= $(STARTUP_DIR)/startup.conf
endif endif
@ -76,6 +76,7 @@ help:
@echo " STARTUP_DIR = $(STARTUP_DIR)" @echo " STARTUP_DIR = $(STARTUP_DIR)"
@echo " GDB = $(GDB)" @echo " GDB = $(GDB)"
@echo " PLATFORM = $(PLATFORM)" @echo " PLATFORM = $(PLATFORM)"
@echo " DPDK_VERSION = $(DPDK_VERSION)"
$(BR)/.bootstrap.ok: $(BR)/.bootstrap.ok:
ifeq ("$(shell lsb_release -si)", "Ubuntu") ifeq ("$(shell lsb_release -si)", "Ubuntu")

View File

@ -29,6 +29,7 @@ DPDK_TARBALL := dpdk-$(DPDK_VERSION).tar.gz
DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL) DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL)
DPDK_2.1.0_TARBALL_MD5_CKSUM := 205a0d12bfd6eb717d57506272f43519 DPDK_2.1.0_TARBALL_MD5_CKSUM := 205a0d12bfd6eb717d57506272f43519
DPDK_2.2.0_TARBALL_MD5_CKSUM := 22e2fd68cd5504f43fe9a5a6fd6dd938 DPDK_2.2.0_TARBALL_MD5_CKSUM := 22e2fd68cd5504f43fe9a5a6fd6dd938
DPDK_16.04-rc2_TARBALL_MD5_CKSUM := a642985d2694d8cf8fdfdf0723be3406
DPDK_SOURCE := $(B)/dpdk-$(DPDK_VERSION) DPDK_SOURCE := $(B)/dpdk-$(DPDK_VERSION)
DPDK_TARGET := x86_64-native-linuxapp-gcc DPDK_TARGET := x86_64-native-linuxapp-gcc
JOBS := $(shell grep processor /proc/cpuinfo | wc -l) JOBS := $(shell grep processor /proc/cpuinfo | wc -l)
@ -82,7 +83,7 @@ all: build
$(B)/custom-config: $(B)/.patch.ok Makefile $(B)/custom-config: $(B)/.patch.ok Makefile
@echo --- generating custom config from $(DPDK_SOURCE)/config/common_linuxapp --- @echo --- generating custom config from $(DPDK_SOURCE)/config/common_linuxapp ---
@cp $(DPDK_SOURCE)/config/common_linuxapp $@ @cpp -undef -ffreestanding -x assembler-with-cpp $(DPDK_SOURCE)/config/common_linuxapp $@
$(call set,RTE_MACHINE,$(DPDK_MACHINE)) $(call set,RTE_MACHINE,$(DPDK_MACHINE))
$(call set,RTE_ARCH,"x86_64") $(call set,RTE_ARCH,"x86_64")
$(call set,RTE_ARCH_X86_64,y) $(call set,RTE_ARCH_X86_64,y)
@ -145,11 +146,13 @@ $(B)/.extract.ok: $(B)/.download.ok
extract: $(B)/.extract.ok extract: $(B)/.extract.ok
$(B)/.patch.ok: $(B)/.extract.ok $(B)/.patch.ok: $(B)/.extract.ok
ifneq ($(wildcard $(CURDIR)/dpdk-$(DPDK_VERSION)_patches/*.patch),)
@echo --- patching --- @echo --- patching ---
for f in $(CURDIR)/dpdk-$(DPDK_VERSION)_patches/*.patch ; do \ for f in $(CURDIR)/dpdk-$(DPDK_VERSION)_patches/*.patch ; do \
echo Applying patch: $$(basename $$f) ; \ echo Applying patch: $$(basename $$f) ; \
patch -p1 -d $(DPDK_SOURCE) < $$f ; \ patch -p1 -d $(DPDK_SOURCE) < $$f ; \
done done
endif
@touch $@ @touch $@
.PHONY: patch .PHONY: patch

View File

@ -78,11 +78,11 @@ typedef struct vhost_user_memory {
vhost_user_memory_region_t regions[VHOST_MEMORY_MAX_NREGIONS]; vhost_user_memory_region_t regions[VHOST_MEMORY_MAX_NREGIONS];
} vhost_user_memory_t; } vhost_user_memory_t;
typedef struct vhost_vring_state { typedef struct {
unsigned int index, num; unsigned int index, num;
} vhost_vring_state_t; } vhost_vring_state_t;
typedef struct vhost_vring_addr { typedef struct {
unsigned int index, flags; unsigned int index, flags;
u64 desc_user_addr, used_user_addr, avail_user_addr, log_guest_addr; u64 desc_user_addr, used_user_addr, avail_user_addr, log_guest_addr;
} vhost_vring_addr_t; } vhost_vring_addr_t;