]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: use skb_expand_head in ip6_finish_output2
authorVasily Averin <vvs@virtuozzo.com>
Mon, 2 Aug 2021 08:52:22 +0000 (11:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2021 10:21:39 +0000 (11:21 +0100)
commit494ab1150a0f50f309325678b79ddfdd30847a47
treea552eca6a611e440e2b69ba78a3c13201681d28e
parent0760c7ef420e3e9819f2610bb5aa75e51d9385d6
ipv6: use skb_expand_head in ip6_finish_output2

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/ipv6/ip6_output.c