]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: use skb_expand_head in bpf_out_neigh_v4/6
authorVasily Averin <vvs@virtuozzo.com>
Mon, 2 Aug 2021 08:52:54 +0000 (11:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2021 10:21:39 +0000 (11:21 +0100)
commit06ba718065ad229f67036c20d2dd7f5ada599508
treedf5e158b6f812e8d1de3d432fa44629f30fe47a2
parentc2570134f4aad81361c01687a0d392b2bc09511e
bpf: use skb_expand_head in bpf_out_neigh_v4/6

Unlike skb_realloc_headroom, new helper skb_expand_head
does not allocate a new skb if possible.

Additionally this patch replaces commonly used dereferencing with variables.

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c