From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ophir Munk Subject: [PATCH v1] net/tap: add eBPF ARM and POWERPC architectures support Date: Wed, 31 Jan 2018 13:44:46 +0000 Message-ID: <1517406286-4306-1-git-send-email-ophirmu@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Thomas Monjalon , Olga Shern , Ophir Munk , Jerin Jacob , Viktorin , Jianbo Liu To: dev@dpdk.org, Pascal Mazon Return-path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30066.outbound.protection.outlook.com [40.107.3.66]) by dpdk.org (Postfix) with ESMTP id 7481E1B7B8 for ; Wed, 31 Jan 2018 14:45:00 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This commit adds eBPF system call definitions for ARM and POWERPC architectures. Old Linux header files may not define eBPF system call numbers. In order to enable a successful eBPF compilation on all Linux platforms - the missing system call definitions are explicitly added. #elif defined(__powerpc__) # define __NR_bpf 361 #elif defined(__arm__) # define __NR_bpf 386 Signed-off-by: Ophir Munk --- drivers/net/tap/tap_bpf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 8d6f9a2..58e6d25 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -97,6 +97,10 @@ union bpf_attr { # define __NR_bpf 349 # elif defined(__s390__) # define __NR_bpf 351 +# elif defined(__powerpc__) +# define __NR_bpf 361 +# elif defined(__arm__) +# define __NR_bpf 386 # else # error __NR_bpf not defined # endif -- 2.7.4