ipv6: use skb_expand_head in ip6_xmit
authorVasily Averin <vvs@virtuozzo.com>
Mon, 2 Aug 2021 08:52:29 +0000 (11:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2021 10:21:39 +0000 (11:21 +0100)
commit0c9f227bee11910a49e1d159abe102d06e3745d5
tree2ad13f6808bb1275838cb8340ff09d366da3b81e
parente415ed3a4b8b246ee5e9d109ff5153efcf96b9f2
ipv6: use skb_expand_head in ip6_xmit

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