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)
commit1e2c611723420789e6098534fc0c57f12ee041b7
treefd8e55976feb4830c5856df3386460ccafa8a0a3
parente289fd28176b78de7e54bf6c8e2b558afefaf6df
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