title | description |
---|---|
KFunc 'bpf_ct_release' |
This page documents the 'bpf_ct_release' eBPF kfunc, including its defintion, usage, program types that can use it, and examples. |
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.
Parameters
nf_conn
: Pointer to referenced nf_conn object, obtained using bpf_xdp_ct_lookup
or bpf_skb_ct_lookup
.
#!c void bpf_ct_release(struct nf_conn *nfct)
!!! note 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.
!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome
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.