Bjørn Mork 43e4c6dfc0 net: cdc_ncm: set reasonable padding limits
We pad frames larger than X to maximum size for devices which
don't need a ZLP after maximum sized frames. This allows the
device to optimize its transfers for one fixed buffer size.

X was arbitrarily set at 512 bytes regardless of real buffer
maximum, causing extreme overheads due to excessive padding of
larger tx buffers. Limit the padding to at most 3 full USB
packets, still allowing the overhead to payload ratio of 3/1.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-16 22:39:01 -04:00
..
2014-03-09 18:59:14 -07:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2013-12-06 12:37:55 -05:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-03-05 20:40:24 -05:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00