aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-06-08 09:04:38 -0700
committerJakub Kicinski <kuba@kernel.org>2022-06-09 21:53:57 -0700
commitfd9ea57f4e9514f9d0f0dec505eefd99a8faa148 (patch)
tree78722b3552044be2170fe2330968b9e7a8251f97 /net/core/sock.c
parentnet: add debug checks in napi_consume_skb and __napi_alloc_skb() (diff)
downloadwireguard-linux-fd9ea57f4e9514f9d0f0dec505eefd99a8faa148.tar.xz
wireguard-linux-fd9ea57f4e9514f9d0f0dec505eefd99a8faa148.zip
net: add napi_get_frags_check() helper
This is a follow up of commit 3226b158e67c ("net: avoid 32 x truesize under-estimation for tiny skbs") When/if we increase MAX_SKB_FRAGS, we better make sure the old bug will not come back. Adding a check in napi_get_frags() would be costly, even if using DEBUG_NET_WARN_ON_ONCE(). Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions