On 2020-03-27 12:25 a.m., Joe Stringer wrote:
BPF_CALL_1(bpf_sk_release, struct sock *, sk) { - /* Only full sockets have sk->sk_flags. */ - if (!sk_fullsock(sk) || !sock_flag(sk, SOCK_RCU_FREE)) + if (sk_is_refcounted(sk)) sock_gen_put(sk); return 0; }
Would it make sense to have both the bpf_sk_release and bpf_sk_assign() centralized so we dont replicate the functionality in tc? Reduces maintainance overhead. Thanks for working on this! cheers, jamal