| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 4 of 5][ATM]: get accounting right when we remove skb |
| From: | "chas williams - CONTRACTOR" <chas@xxxxxxxxxxxxxxxx> |
| Date: | Wed, 26 Jan 2005 11:57:53 -0500 |
| Cc: | davem@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
please apply to 2.6
thanks!
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/01/24 13:25:27-05:00 chas@xxxxxxxxxxxxxxxxxxxxxx
# [ATM]: get accounting right when we remove skb
#
# Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
#
# net/atm/svc.c
# 2005/01/24 13:25:10-05:00 chas@xxxxxxxxxxxxxxxxxxxxxx +1 -0
# [ATM]: get accounting right when we remove skb
#
# Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
#
diff -Nru a/net/atm/svc.c b/net/atm/svc.c
--- a/net/atm/svc.c 2005-01-25 09:36:57 -05:00
+++ b/net/atm/svc.c 2005-01-25 09:36:57 -05:00
@@ -67,6 +67,7 @@
/* beware - socket is still in use by atmsigd until the last
as_indicate has been answered */
while ((skb = skb_dequeue(&vcc->sk->sk_receive_queue)) != NULL) {
+ atm_return(vcc, skb->truesize);
DPRINTK("LISTEN REL\n");
sigd_enq2(NULL,as_reject,vcc,NULL,NULL,&vcc->qos,0);
dev_kfree_skb(skb);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 3 of 5][ATM]: [nicstar] small cleanup for some globals, chas williams - CONTRACTOR |
|---|---|
| Next by Date: | [PATCH 5 of 5][ATM]: replace schedule_timeout() with msleep(), chas williams - CONTRACTOR |
| Previous by Thread: | [PATCH 3 of 5][ATM]: [nicstar] small cleanup for some globals, chas williams - CONTRACTOR |
| Next by Thread: | [PATCH 5 of 5][ATM]: replace schedule_timeout() with msleep(), chas williams - CONTRACTOR |
| Indexes: | [Date] [Thread] [Top] [All Lists] |