net: allow alloc_skb_with_frags() to allocate bigger packets
authorEric Dumazet <edumazet@google.com>
Tue, 1 Aug 2023 20:52:51 +0000 (20:52 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Aug 2023 01:44:55 +0000 (18:44 -0700)
commit09c2c90705bb64986d499c4a4f3fd659761b637c
tree78e5598712de29cf21cfd49ee8d3ef739213476b
parent49c467dca39df9a3674854969cc5a8eb7170682d
net: allow alloc_skb_with_frags() to allocate bigger packets

Refactor alloc_skb_with_frags() to allow bigger packets allocations.

Instead of assuming that only order-0 allocations will be attempted,
use the caller supplied max order.

v2: try harder to use high-order pages, per Willem feedback.

Link: https://lore.kernel.org/netdev/CANn89iJQfmc_KeUr3TeXvsLQwo3ZymyoCr7Y6AnHrkWSuz0yAg@mail.gmail.com/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tahsin Erdogan <trdgn@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20230801205254.400094-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c