Commit 93ba1124 authored by Tushar Vyavahare's avatar Tushar Vyavahare Committed by Daniel Borkmann

selftests/xsk: Rename xsk_xdp_metadata.h to xsk_xdp_common.h

Rename the header file to a generic name so that it can be used by all
future XDP programs. Ensure that the xsk_xdp_common.h header file includes
include guards.
Signed-off-by: default avatarTushar Vyavahare <tushar.vyavahare@intel.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarMagnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20230927135241.2287547-3-tushar.vyavahare@intel.com
parent 8367eb95
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <linux/bpf.h> #include <linux/bpf.h>
#include <bpf/bpf_helpers.h> #include <bpf/bpf_helpers.h>
#include "xsk_xdp_metadata.h" #include "xsk_xdp_common.h"
struct { struct {
__uint(type, BPF_MAP_TYPE_XSKMAP); __uint(type, BPF_MAP_TYPE_XSKMAP);
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
#ifndef XSK_XDP_COMMON_H_
#define XSK_XDP_COMMON_H_
struct xdp_info { struct xdp_info {
__u64 count; __u64 count;
} __attribute__((aligned(32))); } __attribute__((aligned(32)));
#endif /* XSK_XDP_COMMON_H_ */
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
#include <bpf/bpf.h> #include <bpf/bpf.h>
#include <linux/filter.h> #include <linux/filter.h>
#include "../kselftest.h" #include "../kselftest.h"
#include "xsk_xdp_metadata.h" #include "xsk_xdp_common.h"
static const char *MAC1 = "\x00\x0A\x56\x9E\xEE\x62"; static const char *MAC1 = "\x00\x0A\x56\x9E\xEE\x62";
static const char *MAC2 = "\x00\x0A\x56\x9E\xEE\x61"; static const char *MAC2 = "\x00\x0A\x56\x9E\xEE\x61";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment