xref: /openbmc/linux/tools/testing/selftests/bpf/test_tcpbpf.h (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1d6d4f60cSLawrence Brakmo // SPDX-License-Identifier: GPL-2.0
2d6d4f60cSLawrence Brakmo 
3d6d4f60cSLawrence Brakmo #ifndef _TEST_TCPBPF_H
4d6d4f60cSLawrence Brakmo #define _TEST_TCPBPF_H
5d6d4f60cSLawrence Brakmo 
6d6d4f60cSLawrence Brakmo struct tcpbpf_globals {
7d6d4f60cSLawrence Brakmo 	__u32 event_map;
8d6d4f60cSLawrence Brakmo 	__u32 total_retrans;
9d6d4f60cSLawrence Brakmo 	__u32 data_segs_in;
10d6d4f60cSLawrence Brakmo 	__u32 data_segs_out;
11d6d4f60cSLawrence Brakmo 	__u32 bad_cb_test_rv;
12d6d4f60cSLawrence Brakmo 	__u32 good_cb_test_rv;
13d6d4f60cSLawrence Brakmo 	__u64 bytes_received;
14d6d4f60cSLawrence Brakmo 	__u64 bytes_acked;
1578d8e26dSAndrey Ignatov 	__u32 num_listen;
16ef8c84efSStanislav Fomichev 	__u32 num_close_events;
1721b5177eSAlexander Duyck 	__u32 tcp_save_syn;
1821b5177eSAlexander Duyck 	__u32 tcp_saved_syn;
19*55144f31SPrankur gupta 	__u32 window_clamp_client;
20*55144f31SPrankur gupta 	__u32 window_clamp_server;
21d6d4f60cSLawrence Brakmo };
22d6d4f60cSLawrence Brakmo #endif
23