Skip to content

Commit 93ba112

Browse files
tvyavahaborkmann
authored andcommitted
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: Tushar Vyavahare <tushar.vyavahare@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/20230927135241.2287547-3-tushar.vyavahare@intel.com
1 parent 8367eb9 commit 93ba112

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

tools/testing/selftests/bpf/progs/xsk_xdp_progs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <linux/bpf.h>
55
#include <bpf/bpf_helpers.h>
6-
#include "xsk_xdp_metadata.h"
6+
#include "xsk_xdp_common.h"
77

88
struct {
99
__uint(type, BPF_MAP_TYPE_XSKMAP);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22

3+
#ifndef XSK_XDP_COMMON_H_
4+
#define XSK_XDP_COMMON_H_
5+
36
struct xdp_info {
47
__u64 count;
58
} __attribute__((aligned(32)));
9+
10+
#endif /* XSK_XDP_COMMON_H_ */

tools/testing/selftests/bpf/xskxceiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
#include <bpf/bpf.h>
103103
#include <linux/filter.h>
104104
#include "../kselftest.h"
105-
#include "xsk_xdp_metadata.h"
105+
#include "xsk_xdp_common.h"
106106

107107
static const char *MAC1 = "\x00\x0A\x56\x9E\xEE\x62";
108108
static const char *MAC2 = "\x00\x0A\x56\x9E\xEE\x61";

0 commit comments

Comments
 (0)