]> git.baikalelectronics.ru Git - kernel.git/commit
[IrDA]: irda-usb TX path optimization (was Re: IrDA spams logfiles - since 2.6.19)
authorSamuel Ortiz <samuel@sortiz.org>
Tue, 16 Jan 2007 03:37:25 +0000 (19:37 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 24 Jan 2007 04:25:49 +0000 (20:25 -0800)
commit195a57f0bd8734e10b1c2bb6470fb06d9a34261a
treee7ed13bfae551ed43e530148293e889998768c35
parent56f283f64eff337c53492c3723e8c3ba1d7db7b5
[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>
drivers/net/irda/irda-usb.c
drivers/net/irda/irda-usb.h