aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/irda-usb.h
diff options
context:
space:
mode:
authorSamuel Ortiz <samuel@sortiz.org>2007-01-15 19:37:25 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-01-23 20:25:49 -0800
commit3958fb34ef18529c1e4a3eca44b7aaf94d4f4697 (patch)
treee7ed13bfae551ed43e530148293e889998768c35 /drivers/net/irda/irda-usb.h
parent[X.25]: Add missing sock_put in x25_receive_data (diff)
downloadlinux-dev-3958fb34ef18529c1e4a3eca44b7aaf94d4f4697.tar.xz
linux-dev-3958fb34ef18529c1e4a3eca44b7aaf94d4f4697.zip
[IrDA]: irda-usb TX path optimization (was Re: IrDA spams logfiles - since 2.6.19)
Since we stop using dev_alloc_skb on the IrDA TX frame, we constantly run into the case of the skb headroom being 0, and thus we call skb_cow for every IrDA TX frame. This patch uses a local buffer and memcpy the skb to it, saving us a kmalloc for each of those IrDA TX frames. Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/irda-usb.h')
-rw-r--r--drivers/net/irda/irda-usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/irda/irda-usb.h b/drivers/net/irda/irda-usb.h
index 6b2271f18e77..e846c38224a3 100644
--- a/drivers/net/irda/irda-usb.h
+++ b/drivers/net/irda/irda-usb.h
@@ -156,6 +156,7 @@ struct irda_usb_cb {
struct irlap_cb *irlap; /* The link layer we are binded to */
struct qos_info qos;
char *speed_buff; /* Buffer for speed changes */
+ char *tx_buff;
struct timeval stamp;
struct timeval now;