linux/Documentation/translations
Jakub Kicinski 6e9b01909a net: remove gfp_mask from napi_alloc_skb()
__napi_alloc_skb() is napi_alloc_skb() with the added flexibility
of choosing gfp_mask. This is a NAPI function, so GFP_ATOMIC is
implied. The only practical choice the caller has is whether to
set __GFP_NOWARN. But that's a false choice, too, allocation failures
in atomic context will happen, and printing warnings in logs,
effectively for a packet drop, is both too much and very likely
non-actionable.

This leads me to a conclusion that most uses of napi_alloc_skb()
are simply misguided, and should use __GFP_NOWARN in the first
place. We also have a "standard" way of reporting allocation
failures via the queue stat API (qstats::rx-alloc-fail).

The direct motivation for this patch is that one of the drivers
used at Meta calls napi_alloc_skb() (so prior to this patch without
__GFP_NOWARN), and the resulting OOM warning is the top networking
warning in our fleet.

Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240327040213.3153864-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-28 18:30:40 -07:00
..
it_IT doc:it_IT: add translation for I2C summary and protocol 2024-02-14 15:25:47 -07:00
ja_JP docs: Move ja_JP/howto.rst to ja_JP/process/howto.rst 2024-03-03 09:00:35 -07:00
ko_KR Documentation/security-bugs: move from admin-guide/ to process/ 2023-03-12 15:56:43 +01:00
sp_SP Documentation: update mailing list addresses 2024-02-21 13:44:21 -07:00
zh_CN net: remove gfp_mask from napi_alloc_skb() 2024-03-28 18:30:40 -07:00
zh_TW - Sumanth Korikkar has taught s390 to allocate hotplug-time page frames 2024-03-14 17:43:30 -07:00
index.rst Documentation: Start translations to Spanish 2022-11-01 16:58:29 -06:00