]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-avoid-the-memory-waste-in-some-ethernet-drivers'
authorJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 19:57:30 +0000 (11:57 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 19:57:31 +0000 (11:57 -0800)
commitd96c64a1cda964b46feb40b89ae5073ebece2ed9
treed15cb81d2e5f49a4f783dd94da3d2ad02a9abfdd
parent42e1440e85e4a3720300852b98a74f2f2aa982c5
parent484b3a3fda4c19f97b01733718b064062c8fe97c
Merge branch 'net-avoid-the-memory-waste-in-some-ethernet-drivers'

Kevin Hao says:

====================
net: Avoid the memory waste in some Ethernet drivers

In the current implementation of napi_alloc_frag(), it doesn't have any
align guarantee for the returned buffer address. We would have to use
some ugly workarounds to make sure that we can get a align buffer
address for some Ethernet drivers. This patch series tries to introduce
some helper functions to make sure that an align buffer is returned.
Then we can drop the ugly workarounds and avoid the unnecessary memory
waste.
====================

Link: https://lore.kernel.org/r/20210204105638.1584-1-haokexin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>