]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: reduce skb truesize in rx path
authorBjørn Mork <bjorn@mork.no>
Fri, 30 May 2014 07:31:03 +0000 (09:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 23:01:30 +0000 (16:01 -0700)
commit432c6a07664438f9bdb5fa31b3280fd4ca1fa7bf
treefd8e55976feb4830c5856df3386460ccafa8a0a3
parent4dcc5e2f757563789ac26051fa787e5199331987
net: cdc_ncm: reduce skb truesize in rx path

Cloning the big skbs we use for USB buffering chokes up TCP and
SCTP because the socket memory limits are hitting earlier than
they should. It is better to unconditionally copy the unwrapped
packets to freshly allocated skbs.

Reported-by: Jim Baxter <jim_baxter@mentor.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c