Skip to content

Commit 2701366

Browse files
tomratbertdavem330
authored andcommitted
fou: Do WARN_ON_ONCE in gue_gro_receive for bad proto callbacks
Do WARN_ON_ONCE instead of WARN_ON in gue_gro_receive when the offload callcaks are bad (either don't exist or gro_receive is not specified). Signed-off-by: Tom Herbert <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 58ce31c commit 2701366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/fou.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static struct sk_buff **gue_gro_receive(struct sk_buff **head,
347347
rcu_read_lock();
348348
offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads;
349349
ops = rcu_dereference(offloads[guehdr->proto_ctype]);
350-
if (WARN_ON(!ops || !ops->callbacks.gro_receive))
350+
if (WARN_ON_ONCE(!ops || !ops->callbacks.gro_receive))
351351
goto out_unlock;
352352

353353
pp = ops->callbacks.gro_receive(head, skb);

0 commit comments

Comments
 (0)