DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] net/tap: add eBPF ARM and POWERPC architectures support
@ 2018-01-31 13:44 Ophir Munk
  2018-01-31 14:28 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Ophir Munk @ 2018-01-31 13:44 UTC (permalink / raw)
  To: dev, Pascal Mazon
  Cc: Thomas Monjalon, Olga Shern, Ophir Munk, Jerin Jacob, Viktorin,
	Jianbo Liu

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 <ophirmu@mellanox.com>
---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH v1] net/tap: add eBPF ARM and POWERPC architectures support
  2018-01-31 13:44 [dpdk-dev] [PATCH v1] net/tap: add eBPF ARM and POWERPC architectures support Ophir Munk
@ 2018-01-31 14:28 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-01-31 14:28 UTC (permalink / raw)
  To: Ophir Munk
  Cc: dev, Pascal Mazon, Olga Shern, Jerin Jacob, Viktorin, Jianbo Liu

31/01/2018 14:44, Ophir Munk:
> 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

PowerPC is already added on master branch.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-31 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 13:44 [dpdk-dev] [PATCH v1] net/tap: add eBPF ARM and POWERPC architectures support Ophir Munk
2018-01-31 14:28 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).