]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b28ce54d267d8d2b36b3794ad6270537b59e93a
tree2ad13f6808bb1275838cb8340ff09d366da3b81e
parent494ab1150a0f50f309325678b79ddfdd30847a47
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