accel/qaic: Add AIC200 support
[drm/drm-misc.git] / tools / testing / selftests / bpf / cgroup_tcp_skb.h
blob7f6b24f102fbee0a6bf051af8b8e2596d5c3a45b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2023 Meta Platforms, Inc. and affiliates. */
4 /* Define states of a socket to tracking messages sending to and from the
5 * socket.
7 * These states are based on rfc9293 with some modifications to support
8 * tracking of messages sent out from a socket. For example, when a SYN is
9 * received, a new socket is transiting to the SYN_RECV state defined in
10 * rfc9293. But, we put it in SYN_RECV_SENDING_SYN_ACK state and when
11 * SYN-ACK is sent out, it moves to SYN_RECV state. With this modification,
12 * we can track the message sent out from a socket.
15 #ifndef __CGROUP_TCP_SKB_H__
16 #define __CGROUP_TCP_SKB_H__
18 enum {
19 INIT,
20 CLOSED,
21 SYN_SENT,
22 SYN_RECV_SENDING_SYN_ACK,
23 SYN_RECV,
24 ESTABLISHED,
25 FIN_WAIT1,
26 FIN_WAIT2,
27 CLOSE_WAIT_SENDING_ACK,
28 CLOSE_WAIT,
29 CLOSING,
30 LAST_ACK,
31 TIME_WAIT_SENDING_ACK,
32 TIME_WAIT,
35 #endif /* __CGROUP_TCP_SKB_H__ */