xref: /linux/tools/testing/selftests/bpf/xdp_features.h (revision 8e07e0e3964ca4e23ce7b68e2096fe660a888942)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 /* test commands */
4 enum test_commands {
5 	CMD_STOP,		/* CMD */
6 	CMD_START,		/* CMD */
7 	CMD_ECHO,		/* CMD */
8 	CMD_ACK,		/* CMD + data */
9 	CMD_GET_XDP_CAP,	/* CMD */
10 	CMD_GET_STATS,		/* CMD */
11 };
12 
13 #define DUT_CTRL_PORT	12345
14 #define DUT_ECHO_PORT	12346
15 
16 struct tlv_hdr {
17 	__be16 type;
18 	__be16 len;
19 	__u8 data[];
20 };
21