KFunc bpf_ct_release
Release acquired nf_conn
object
Definition
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
.
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.
Usage
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:
Example
See bpf_ct_set_nat_info
for an example of how to use this kfunc.