]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0bab0f942248639864089a9fd3238860988b8f5
tree6de2759b3523e2f3607c1a8071148d6e0d31d099
parent414e718296c077b94f398a7e295d02ea8c00e51a
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