--- zzzz-none-000/linux-5.15.111/include/net/sock.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/include/net/sock.h 2024-02-07 10:23:27.000000000 +0000 @@ -516,6 +516,9 @@ #ifdef CONFIG_SECURITY void *sk_security; #endif +#ifdef CONFIG_AVM_SK_TC_INDEX + unsigned long sk_tc_index; +#endif struct sock_cgroup_data sk_cgrp_data; struct mem_cgroup *sk_memcg; void (*sk_state_change)(struct sock *sk); @@ -535,8 +538,16 @@ struct bpf_local_storage __rcu *sk_bpf_storage; #endif struct rcu_head sk_rcu; + uint32_t acceleration_flag; +}; + +enum toe_acceleration_flag_set_act { + SOCKET_ALLOCATE, + SOCKET_RELEASE }; +extern void toe_set_hook(int (*hook)(struct sock *, struct pid *, enum toe_acceleration_flag_set_act)); + enum sk_pacing { SK_PACING_NONE = 0, SK_PACING_NEEDED = 1,