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)
commit0df65743537dd6e1c8b0924714f14dc367cba2be
treec0f7daef1ab01bd83d1c7ee9c21fcb6fca7b517f
parentf4826443f4d69d2c97c184952c085caf0936a7b8
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