]> git.baikalelectronics.ru Git - kernel.git/commit
net: use DEBUG_NET_WARN_ON_ONCE() in dev_loopback_xmit()
authorEric Dumazet <edumazet@google.com>
Wed, 8 Jun 2022 16:04:32 +0000 (09:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 04:53:55 +0000 (21:53 -0700)
commit87be06ee8fa9da0c6ef877652ff4c09e452d2880
tree1522190e6be02161ffba07a3b9adf002a559d9b8
parent0d6c8eb15543b833879e77ddc894dcd9e93839af
net: use DEBUG_NET_WARN_ON_ONCE() in dev_loopback_xmit()

One check in dev_loopback_xmit() has not caught issues
in the past.

Keep it for CONFIG_DEBUG_NET=y builds only.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c