Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daa86548 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: gro: GRO_MERGED_FREE consumes packets



As part of GRO processing, merged skbs should be consumed, not freed, to
not confuse dropwatch/drop_monitor.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 85bb2a60
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3542,10 +3542,13 @@ gro_result_t napi_skb_finish(gro_result_t ret, struct sk_buff *skb)
		break;

	case GRO_DROP:
	case GRO_MERGED_FREE:
		kfree_skb(skb);
		break;

	case GRO_MERGED_FREE:
		consume_skb(skb);
		break;

	case GRO_HELD:
	case GRO_MERGED:
		break;