DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] net/tap: fix build on ARM
@ 2018-01-31 16:03 Ophir Munk
  2018-01-31 18:10 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Ophir Munk @ 2018-01-31 16:03 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 architecture.
Old Linux header files may not define eBPF system call numbers.
In order to successful compile eBPF on all Linux platforms - the
missing ARM system call definition is explicitly added.

Fixes: b02d85e1 ("net/tap: add eBPF API")

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
---
 drivers/net/tap/tap_bpf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h
index 8d6f9a2..0fa52a6 100644
--- a/drivers/net/tap/tap_bpf.h
+++ b/drivers/net/tap/tap_bpf.h
@@ -97,6 +97,8 @@ union bpf_attr {
 #  define __NR_bpf 349
 # elif defined(__s390__)
 #  define __NR_bpf 351
+# 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: fix build on ARM
  2018-01-31 16:03 [dpdk-dev] [PATCH v1] net/tap: fix build on ARM Ophir Munk
@ 2018-01-31 18:10 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-01-31 18:10 UTC (permalink / raw)
  To: Ophir Munk
  Cc: dev, Pascal Mazon, Olga Shern, Jerin Jacob, Viktorin, Jianbo Liu

31/01/2018 17:03, Ophir Munk:
> This commit adds eBPF system call definitions for ARM architecture.
> Old Linux header files may not define eBPF system call numbers.
> In order to successful compile eBPF on all Linux platforms - the
> missing ARM system call definition is explicitly added.
> 
> Fixes: b02d85e1 ("net/tap: add eBPF API")
> 
> Signed-off-by: Ophir Munk <ophirmu@mellanox.com>

Note: it is only for ARM32.

Applied, thanks

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 16:03 [dpdk-dev] [PATCH v1] net/tap: fix build on ARM Ophir Munk
2018-01-31 18:10 ` 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).