]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: use skb_expand_head in ip6_xmit
authorVasily Averin <vvs@virtuozzo.com>
Wed, 25 Dec 2024 05:16:23 +0000 (21:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:24:59 +0000 (13:24 +0100)
commitee6b1db17f8287b615448488fc37f42bcfe9ece6
tree9d25eece51460a1695fac8c2ce407424e822a8f7
parent4132c4ad00ddbf3a175ea0d2c775b662a32f4c85
ipv6: use skb_expand_head in ip6_xmit

[ Upstream commit 0c9f227bee11910a49e1d159abe102d06e3745d5 ]

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>
(cherry picked from commit 0c9f227bee11910a49e1d159abe102d06e3745d5)
Signed-off-by: Harshvardhan Jha <harshvardhan.j.jha@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ip6_output.c