netdev
[Top] [All Lists]

[PATCH 7/7] netpoll: avoid kfree_skb on packets with destructo

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH 7/7] netpoll: avoid kfree_skb on packets with destructo
From: Matt Mackall <mpm@xxxxxxxxxxx>
Date: Thu, 03 Mar 2005 14:46:32 -0600
Cc: netdev@xxxxxxxxxxx, Jeff Moyer <jmoyer@xxxxxxxxxx>
In-reply-to: <7.454130102@selenic.com>
Sender: netdev-bounce@xxxxxxxxxxx
Packets that have destructors should not be zapped here as that might
produce additional printk warnings via netconsole.

Signed-off-by: Matt Mackall <mpm@xxxxxxxxxxx>

Index: np/net/core/netpoll.c
===================================================================
--- np.orig/net/core/netpoll.c  2005-03-03 14:16:29.579809668 -0600
+++ np/net/core/netpoll.c       2005-03-03 14:17:21.167652225 -0600
@@ -192,7 +192,8 @@ static void zap_completion_queue(void)
                while (clist != NULL) {
                        struct sk_buff *skb = clist;
                        clist = clist->next;
-                       __kfree_skb(skb);
+                       if(!skb->destructor)
+                               __kfree_skb(skb);
                }
        }
 

<Prev in Thread] Current Thread [Next in Thread>