replace alignment attributes
[dpdk.git] / drivers / net / tap / tap_bpf.h
index 06e9509..f0b9fc7 100644 (file)
@@ -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,13 +84,15 @@ union bpf_attr {
                __u32           kern_version;
                __u32           prog_flags;
        };
-} __attribute__((aligned(8)));
+} __rte_aligned(8);
 
 #ifndef __NR_bpf
 # if defined(__i386__)
 #  define __NR_bpf 357
 # elif defined(__x86_64__)
 #  define __NR_bpf 321
+# elif defined(__arm__)
+#  define __NR_bpf 386
 # elif defined(__aarch64__)
 #  define __NR_bpf 280
 # elif defined(__sparc__)