[dpdk-dev] net/tap: define __NR_bpf for powerpc
Checks
Commit Message
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
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
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
@@ -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