]> 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)
commit460e8cce6e30194d8fb368f3f0cee115e5d68f82
treea552eca6a611e440e2b69ba78a3c13201681d28e
parentfd10f6e1ce98c5b9e5020e8fe5856a83231cee20
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