vxlan: Copy needed_tailroom from lowerdev
authorSven Eckelmann <sven@narfation.org>
Thu, 26 Nov 2020 12:52:47 +0000 (13:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:48 +0000 (13:46 +0100)
commit2673eb2aa39293f08fa5ee60c5775d9ac183cbb2
treee20c1377bf871c6d32e3807c6339d484aede8d2c
parent951481c52a94ba646e35b99fdb93177ab580555b
vxlan: Copy needed_tailroom from lowerdev

[ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ]

While vxlan doesn't need any extra tailroom, the lowerdev might need it. In
that case, copy it over to reduce the chance for additional (re)allocations
in the transmit path.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://lore.kernel.org/r/20201126125247.1047977-2-sven@narfation.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/vxlan.c