]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: replace a BUG_ON() with the new DEBUG_NET_WARN_ON_ONCE()
authorJakub Kicinski <kuba@kernel.org>
Wed, 11 May 2022 17:23:05 +0000 (10:23 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 May 2022 23:20:52 +0000 (16:20 -0700)
commit5ec7d260f254c8513ed6e7ae5477146a1f8ff3fa
treec0f7daef1ab01bd83d1c7ee9c21fcb6fca7b517f
parent7552a24e026fbca30da2bd153f281297b7c33c65
skbuff: replace a BUG_ON() with the new DEBUG_NET_WARN_ON_ONCE()

Very few drivers actually have Kconfig knobs for adding
-DDEBUG. 8 according to a quick grep, while there are
93 users of skb_checksum_none_assert(). Switch to the
new DEBUG_NET_WARN_ON_ONCE() to catch bad skbs.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220511172305.1382810-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h