mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-13 19:03:52 +02:00
dpdk: add Data Plane Development Kit package
DPDK consists of libraries to accelerate packet processing workloads running on a wide variety of CPU architectures. Signed-off-by: Chandrakant Sharpa <s.chandrakant@globaledgesoft.com>
This commit is contained in:
parent
238046303d
commit
feb318eafa
38
net/dpdk/Makefile
Normal file
38
net/dpdk/Makefile
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME := dpdk
|
||||||
|
PKG_VERSION := 21.05
|
||||||
|
|
||||||
|
PKG_SOURCE := dpdk-$(PKG_VERSION).tar.xz
|
||||||
|
PKG_SOURCE_URL := http://static.dpdk.org/rel
|
||||||
|
PKG_HASH := 1e12499b4c5fcdb57c83e5fe184ea6becddf7cf092893c2c5ef2efb0eec12f0b
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:= meson/host
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
include $(TOPDIR)/feeds/packages/devel/meson/meson.mk
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral
|
||||||
|
|
||||||
|
define Package/dpdk
|
||||||
|
SECTION := net
|
||||||
|
CATEGORY := Network
|
||||||
|
TITLE := Data Plane Development Kit (DPDK)
|
||||||
|
DEPENDS := @(x86_64||arm||aarch64) +librt +libpthread +libbpf +libpcap +libopenssl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/dpdk/description
|
||||||
|
DPDK consists of libraries to accelerate packet processing
|
||||||
|
workloads running on a wide variety of CPU architectures.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/dpdk/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/{bin,lib}
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{dpdk-testpmd,dpdk-proc-info,dpdk-test-flow-perf} $(1)/usr/bin/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,dpdk))
|
|
@ -0,0 +1,35 @@
|
||||||
|
From afe64bae6d398fc9a194bce2763d6b2ab080f38f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chandrakant Sharpa <s.chandrakant@globaledgesoft.com>
|
||||||
|
Date: Mon, 14 Jun 2021 17:53:16 +0530
|
||||||
|
Subject: [PATCH] Handling backtrace and execinfo header file
|
||||||
|
|
||||||
|
Signed-off-by: Chandrakant Sharpa <s.chandrakant@globaledgesoft.com>
|
||||||
|
---
|
||||||
|
lib/eal/linux/eal_debug.c | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
--- a/lib/eal/linux/eal_debug.c
|
||||||
|
+++ b/lib/eal/linux/eal_debug.c
|
||||||
|
@@ -2,9 +2,11 @@
|
||||||
|
* Copyright(c) 2010-2014 Intel Corporation
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#ifdef RTE_BACKTRACE
|
||||||
|
#include <execinfo.h>
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
@@ -26,8 +28,10 @@ void rte_dump_stack(void)
|
||||||
|
char **symb = NULL;
|
||||||
|
int size;
|
||||||
|
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
size = backtrace(func, BACKTRACE_SIZE);
|
||||||
|
symb = backtrace_symbols(func, size);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
if (symb == NULL)
|
||||||
|
return;
|
Loading…
Reference in New Issue
Block a user