]> git.baikalelectronics.ru Git - kernel.git/commit
mld: avoid unnecessary high order page allocation in mld_newpack()
authorTaehee Yoo <ap420073@gmail.com>
Sun, 13 Jun 2021 14:43:44 +0000 (14:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:46:00 +0000 (12:46 -0700)
commitf63b035712b4476f83f94ebda2a947c86d65876a
treeaee0d324858e9d967861a85b6d1033731de624df
parent589124e27523518406a27bf9deb3c341bb232bb9
mld: avoid unnecessary high order page allocation in mld_newpack()

If link mtu is too big, mld_newpack() allocates high-order page.
But most mld packets don't need high-order page.
So, it might waste unnecessary pages.
To avoid this, it makes mld_newpack() try to allocate order-0 page.

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c