[dpdk-dev] net/tap: define __NR_bpf for powerpc

Message ID 4bcfed4d27c7289734cbf0038022d967844234a4.1517295607.git.gowrishankar.m@linux.vnet.ibm.com (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Gowrishankar Jan. 30, 2018, 7:05 a.m. UTC
  From: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>

This patch defines __NR_bpf for powerpc architecture and hence,
fixes compiling tap driver for this architecture.

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

Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
---
 drivers/net/tap/tap_bpf.h | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Pascal Mazon Jan. 30, 2018, 8:51 a.m. UTC | #1
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>

On 30/01/2018 08:05, Gowrishankar wrote:
> From: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
>
> This patch defines __NR_bpf for powerpc architecture and hence,
> fixes compiling tap driver for this architecture.
>
> Fixes: b02d85e1 ("net/tap: add eBPF API")
>
> Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.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..06e9509 100644
> --- a/drivers/net/tap/tap_bpf.h
> +++ b/drivers/net/tap/tap_bpf.h
> @@ -97,6 +97,8 @@ enum bpf_map_type {
>  #  define __NR_bpf 349
>  # elif defined(__s390__)
>  #  define __NR_bpf 351
> +# elif defined(__powerpc__)
> +#  define __NR_bpf 361
>  # else
>  #  error __NR_bpf not defined
>  # endif
  
Thomas Monjalon Jan. 30, 2018, 1:28 p.m. UTC | #2
30/01/2018 09:51, Pascal Mazon:
> Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
> 
> On 30/01/2018 08:05, Gowrishankar wrote:
> > From: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
> >
> > This patch defines __NR_bpf for powerpc architecture and hence,
> > fixes compiling tap driver for this architecture.
> >
> > Fixes: b02d85e1 ("net/tap: add eBPF API")
> >
> > Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>

Applied, thanks
  

Patch

diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h
index 8d6f9a2..06e9509 100644
--- a/drivers/net/tap/tap_bpf.h
+++ b/drivers/net/tap/tap_bpf.h
@@ -97,6 +97,8 @@  enum bpf_map_type {
 #  define __NR_bpf 349
 # elif defined(__s390__)
 #  define __NR_bpf 351
+# elif defined(__powerpc__)
+#  define __NR_bpf 361
 # else
 #  error __NR_bpf not defined
 # endif