Commit 09c2c90
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 <[email protected]>
Cc: Tahsin Erdogan <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 49c467d commit 09c2c90
1 file changed
+25
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6204 | 6204 | | |
6205 | 6205 | | |
6206 | 6206 | | |
6207 | | - | |
| 6207 | + | |
6208 | 6208 | | |
6209 | 6209 | | |
6210 | 6210 | | |
6211 | 6211 | | |
6212 | 6212 | | |
6213 | 6213 | | |
6214 | 6214 | | |
6215 | | - | |
| 6215 | + | |
6216 | 6216 | | |
6217 | 6217 | | |
6218 | 6218 | | |
6219 | | - | |
6220 | 6219 | | |
6221 | 6220 | | |
6222 | 6221 | | |
6223 | | - | |
| 6222 | + | |
6224 | 6223 | | |
6225 | 6224 | | |
6226 | | - | |
6227 | | - | |
6228 | | - | |
6229 | | - | |
| 6225 | + | |
6230 | 6226 | | |
6231 | 6227 | | |
6232 | 6228 | | |
6233 | 6229 | | |
6234 | 6230 | | |
6235 | 6231 | | |
6236 | 6232 | | |
6237 | | - | |
6238 | | - | |
6239 | | - | |
6240 | | - | |
6241 | | - | |
6242 | | - | |
6243 | | - | |
6244 | | - | |
6245 | | - | |
6246 | | - | |
6247 | | - | |
6248 | | - | |
6249 | | - | |
6250 | | - | |
6251 | | - | |
6252 | | - | |
6253 | | - | |
| 6233 | + | |
| 6234 | + | |
| 6235 | + | |
| 6236 | + | |
6254 | 6237 | | |
| 6238 | + | |
| 6239 | + | |
| 6240 | + | |
| 6241 | + | |
| 6242 | + | |
| 6243 | + | |
| 6244 | + | |
| 6245 | + | |
| 6246 | + | |
| 6247 | + | |
| 6248 | + | |
| 6249 | + | |
| 6250 | + | |
| 6251 | + | |
6255 | 6252 | | |
6256 | | - | |
6257 | | - | |
6258 | | - | |
6259 | | - | |
6260 | 6253 | | |
6261 | 6254 | | |
6262 | | - | |
| 6255 | + | |
| 6256 | + | |
| 6257 | + | |
6263 | 6258 | | |
6264 | | - | |
6265 | 6259 | | |
6266 | 6260 | | |
6267 | 6261 | | |
| |||
0 commit comments