usb: gadget: NCM: Stop RX TCP Bursts getting dropped.
authorJim Baxter <jim_baxter@mentor.com>
Mon, 7 Jul 2014 17:33:19 +0000 (18:33 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 10 Jul 2014 13:49:39 +0000 (08:49 -0500)
commit66847062a6e33fa54b98714c7c954353e2596645
tree6de2759b3523e2f3607c1a8071148d6e0d31d099
parent6d3865f9d41f15ddbcecaa6722871fc0db21d7ab
usb: gadget: NCM: Stop RX TCP Bursts getting dropped.

This fixes a problem with dropped packets over 16k CDC-NCM
when the connection is being heavily used.

The issue was that the extracted frames cloned from the
received frame were consuming more memory than necessary
resulting in the truesize being ~32KB instead of ~2KB, this
meant there was a high chance of reaching the sk_rcvbuf
limit.

Signed-off-by: Jim Baxter <jim_baxter@mentor.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_ncm.c