KFunc bpf_qdisc_skb_drop
Drop an skb by adding it to a deferred free list.
Definition
Parameters
skb
: The skb whose reference to be released and dropped.
to_free_list
: The list of skbs to be dropped.
Signature
void bpf_qdisc_skb_drop(struct sk_buff *skb, struct bpf_sk_buff_ptr *to_free_list)
Usage
This kfunc is used to add skb
to the to_free_list
. Packets added to this to_free_list
are marked as dropped and their memory freed.
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome