| 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@xxxxxxxxxxx> |
| 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);
}
}
|
| Previous by Date: | [PATCH 5/7] netpoll: add optional dropping and queueing support, Matt Mackall |
|---|---|
| Next by Date: | [PATCH 4/7] netpoll: fix ->poll() locking, Matt Mackall |
| Previous by Thread: | [PATCH 6/7] netpoll: handle xmit_lock recursion similarly, Matt Mackall |
| Next by Thread: | Re: [PATCH 7/7] netpoll: avoid kfree_skb on packets with destructo, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |