skb_dst_set_noref_force(9) sets skb dst, without taking reference

SYNOPSIS

void skb_dst_set_noref_force(struct sk_buff * skb, struct dst_entry * dst);

ARGUMENTS

skb

buffer

dst

dst entry

DESCRIPTION

Sets skb dst, assuming a reference was not taken on dst. No reference is taken and no dst_release will be called. While for cached dsts deferred reclaim is a basic feature, for entries that are not cached it is caller's job to guarantee that last dst_release for provided dst happens when nobody uses it, eg. after a RCU grace period.

COPYRIGHT