diff options
author | 2023-09-13 13:48:41 +0000 | |
---|---|---|
committer | 2023-09-16 10:10:27 +0100 | |
commit | c123e0d30bdb54a0f91ec348827eef76877165d8 (patch) | |
tree | ef95571b1f5538b29fe0adbf557bdfdb3239d96f /drivers/net/ethernet/mediatek/mtk_ppe_regs.h | |
parent | net: use indirect call helpers for sk->sk_prot->release_cb() (diff) | |
download | linux-c123e0d30bdb54a0f91ec348827eef76877165d8.tar.gz linux-c123e0d30bdb54a0f91ec348827eef76877165d8.tar.bz2 linux-c123e0d30bdb54a0f91ec348827eef76877165d8.zip |
net: add truesize debug checks in skb_{add|coalesce}_rx_frag()
It can be time consuming to track driver bugs, that might be detected
too late from this confusing warning in skb_try_coalesce()
WARN_ON_ONCE(delta < len);
Add sanity check in skb_add_rx_frag() and skb_coalesce_rx_frag()
to better track bug origin for CONFIG_DEBUG_NET=y builds.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_ppe_regs.h')
0 files changed, 0 insertions, 0 deletions