Skip to content

KFunc bpf_ct_release


Release acquired nf_conn object


This must be invoked for referenced PTR_TO_BTF_ID, and the verifier rejects the program if any references remain in the program in all of the explored states.


nf_conn: Pointer to referenced nf_conn object, obtained using bpf_xdp_ct_lookup or bpf_skb_ct_lookup.

void bpf_ct_release(struct nf_conn *nfct)


This kfunc releases the pointer passed in to it. There can be only one referenced pointer that can be passed in. All copies of the pointer being released are invalidated as a result of invoking this kfunc.


Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

The following program types can make use of this kfunc:


See bpf_ct_set_nat_info for an example of how to use this kfunc.