Skip to content

Commit cbe4136

Browse files
edumazetkuba-moo
authored andcommitted
gro: change the BUG_ON() in gro_pull_from_frag0()
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c75734b commit cbe4136

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/core/gro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ static void gro_pull_from_frag0(struct sk_buff *skb, int grow)
415415
{
416416
struct skb_shared_info *pinfo = skb_shinfo(skb);
417417

418-
BUG_ON(skb->end - skb->tail < grow);
418+
DEBUG_NET_WARN_ON_ONCE(skb->end - skb->tail < grow);
419419

420420
memcpy(skb_tail_pointer(skb), NAPI_GRO_CB(skb)->frag0, grow);
421421

0 commit comments

Comments
 (0)