linuxPackages.odp-dpdk: 1.15.0.0 -> 1.19.0.0_DPDK_17.11
This commit is contained in:
parent
d307113708
commit
fc10e188e2
@ -1,32 +0,0 @@
|
|||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 001ebfc2893b..7d19ebcd213f 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -215,7 +215,7 @@ AC_SUBST([testdir])
|
|
||||||
##########################################################################
|
|
||||||
AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ])
|
|
||||||
AM_CONDITIONAL([PKTIO_DPDK], [test x$pktio_dpdk_support = xyes ])
|
|
||||||
-AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes])
|
|
||||||
+AM_CONDITIONAL([HAVE_PCAP], [test x$have_pcap = xyes])
|
|
||||||
AM_CONDITIONAL([DPDK_DEFAULT_DIR], [test "x${DPDK_DEFAULT_DIR}" = "x1"])
|
|
||||||
AM_CONDITIONAL([test_installdir], [test "$testdir" != ""])
|
|
||||||
AM_CONDITIONAL([cunit_support], [test x$cunit_support = xyes ])
|
|
||||||
@@ -320,18 +320,6 @@ ODP_CFLAGS="$ODP_CFLAGS -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonli
|
|
||||||
ODP_CFLAGS="$ODP_CFLAGS -Wformat-security -Wundef -Wwrite-strings"
|
|
||||||
ODP_CFLAGS="$ODP_CFLAGS -std=gnu99"
|
|
||||||
|
|
||||||
-dnl Use -Werror in the checks below since Clang emits a warning instead of
|
|
||||||
-dnl an error when it encounters an unknown warning option.
|
|
||||||
-AX_CHECK_COMPILE_FLAG([-Wimplicit-fallthrough=0],
|
|
||||||
- [ODP_CFLAGS="$ODP_CFLAGS -Wimplicit-fallthrough=0"],
|
|
||||||
- [], [-Werror])
|
|
||||||
-AX_CHECK_COMPILE_FLAG([-Wformat-truncation=0],
|
|
||||||
- [ODP_CFLAGS="$ODP_CFLAGS -Wformat-truncation=0"],
|
|
||||||
- [], [-Werror])
|
|
||||||
-AX_CHECK_COMPILE_FLAG([-Wformat-overflow=0],
|
|
||||||
- [ODP_CFLAGS="$ODP_CFLAGS -Wformat-overflow=0"],
|
|
||||||
- [], [-Werror])
|
|
||||||
-
|
|
||||||
# Extra flags for example to suppress certain warning types
|
|
||||||
ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA"
|
|
||||||
|
|
@ -1,31 +1,27 @@
|
|||||||
{ stdenv, fetchgit, autoreconfHook, openssl, libpcap, dpdk }:
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
||||||
|
, dpdk, libconfig, libpcap, numactl, openssl
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "odp-dpdk-${version}";
|
name = "odp-dpdk-${version}";
|
||||||
version = "1.15.0.0";
|
version = "1.19.0.0_DPDK_17.11";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchurl {
|
||||||
url = "https://git.linaro.org/lng/odp-dpdk.git";
|
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${name}.tar.gz";
|
||||||
rev = "d8533b4e575d62c9f6f2caedd38d98a1a56fb8d3";
|
sha256 = "05bwjaxl9hqc6fbkp95nniq11g3kvzmlxw0bq55i7p2v35nv38px";
|
||||||
sha256 = "1p09rw7dxxqcxxrdb8wbwp2imapyjvdbvap7s9km2i9hbd8ipdif";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
buildInputs = [ openssl dpdk libpcap ];
|
buildInputs = [ dpdk libconfig libpcap numactl openssl ];
|
||||||
|
|
||||||
RTE_SDK = "${dpdk}";
|
RTE_SDK = dpdk;
|
||||||
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
||||||
|
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--with-sdk-install-path=${dpdk}/${RTE_TARGET}"
|
"--with-dpdk-path=${dpdk}"
|
||||||
];
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
./configure.patch
|
|
||||||
./odp_crypto.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
diff --git a/platform/linux-dpdk/odp_crypto.c b/platform/linux-dpdk/odp_crypto.c
|
|
||||||
index d95b157805dc..d13ad5bbde95 100644
|
|
||||||
--- a/platform/linux-dpdk/odp_crypto.c
|
|
||||||
+++ b/platform/linux-dpdk/odp_crypto.c
|
|
||||||
@@ -900,11 +900,12 @@ int odp_crypto_session_create(odp_crypto_session_param_t *param,
|
|
||||||
/* Setup session */
|
|
||||||
session = rte_cryptodev_sym_session_create(cdev_id, first_xform);
|
|
||||||
|
|
||||||
- if (session == NULL)
|
|
||||||
+ if (session == NULL) {
|
|
||||||
/* remove the crypto_session_entry_t */
|
|
||||||
memset(entry, 0, sizeof(*entry));
|
|
||||||
free_session(entry);
|
|
||||||
return -1;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
entry->rte_session = (intptr_t)session;
|
|
||||||
entry->cipher_xform = cipher_xform;
|
|
Loading…
x
Reference in New Issue
Block a user