]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net: set SK_MEM_QUANTUM to 4096"
authorEric Dumazet <edumazet@google.com>
Thu, 9 Jun 2022 06:34:06 +0000 (23:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 23:21:26 +0000 (16:21 -0700)
commit76b50b3a78d695c569582f81766511e17a4a9c87
tree85e3536d8503f8d7f22ce9a90bccd1a572788a7f
parentdf4e857865694a7fd66b32ade29aac246e83a515
Revert "net: set SK_MEM_QUANTUM to 4096"

This reverts commit 6f3d17864887fcc5b933b7f3eb688ad372330d3c.

This change broke memcg on arches with PAGE_SIZE != 4096

Later, commit 196619f605c5e ("net: add new socket option SO_RESERVE_MEM")
also assumed PAGE_SIZE==SK_MEM_QUANTUM

Following patches in the series will greatly reduce the over allocations
problem.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h