]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gro: change the BUG_ON() in gro_pull_from_frag0()
authorEric Dumazet <edumazet@google.com>
Thu, 22 Jan 2026 04:57:17 +0000 (04:57 +0000)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:28 +0000 (07:20 -0500)
commit4697272cf2fbdf010fd2eb01f4768765d9b7d895
treeccff8ceb2bafab0e56f7519b741e598b11c03baf
parentb67b96bddf7a5a2bb865414212f0c0551deca57c
gro: change the BUG_ON() in gro_pull_from_frag0()

[ Upstream commit cbe41362be2c27e0237a94a404ae413cec9c2ad9 ]

Replace the BUG_ON() which never fired with a DEBUG_NET_WARN_ON_ONCE()

$ scripts/bloat-o-meter -t vmlinux.1 vmlinux.2
add/remove: 2/2 grow/shrink: 1/1 up/down: 370/-254 (116)
Function                                     old     new   delta
gro_try_pull_from_frag0                        -     196    +196
napi_gro_frags                               771     929    +158
__pfx_gro_try_pull_from_frag0                  -      16     +16
__pfx_gro_pull_from_frag0                     16       -     -16
dev_gro_receive                             1514    1464     -50
gro_pull_from_frag0                          188       -    -188
Total: Before=22565899, After=22566015, chg +0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260122045720.1221017-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/gro.c