X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Ftap%2Ftap_bpf.h;h=639bdf3a793c83af24f60c95945014caa9c64668;hb=a820df244f21d619078da804de3b29258ee7cc9a;hp=1a70ffe21b4be25535ab1822e9199f0df3b8f916;hpb=e56447980ece8ea01717f41ff82cf8122635e7ec;p=dpdk.git diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 1a70ffe21b..639bdf3a79 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 - * Copyright 2017 Mellanox Technologies, Ltd. + * Copyright 2017 Mellanox Technologies, Ltd */ #ifndef __TAP_BPF_H__ @@ -84,7 +84,7 @@ union bpf_attr { __u32 kern_version; __u32 prog_flags; }; -} __attribute__((aligned(8))); +} __rte_aligned(8); #ifndef __NR_bpf # if defined(__i386__) @@ -101,6 +101,8 @@ union bpf_attr { # define __NR_bpf 351 # elif defined(__powerpc__) # define __NR_bpf 361 +# elif defined(__riscv) +# define __NR_bpf 280 # else # error __NR_bpf not defined # endif