net: gro: GRO_MERGED_FREE consumes packets
authorEric Dumazet <edumazet@google.com>
Thu, 19 Apr 2012 07:07:40 +0000 (07:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2012 18:23:56 +0000 (14:23 -0400)
As part of GRO processing, merged skbs should be consumed, not freed, to
not confuse dropwatch/drop_monitor.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index c93812733f1da842058d6f40fcf9715c39cdb463..501f3cc703dde39cc84a6df4dba3ae63a2c020f0 100644 (file)
@@ -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;