OSDN Git Service

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)
commite415ed3a4b8b246ee5e9d109ff5153efcf96b9f2
treea552eca6a611e440e2b69ba78a3c13201681d28e
parentf1260ff15a71b8fc122b2c9abd8a7abffb6e0168
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