From: Bjørn Mork Date: Fri, 16 May 2014 19:48:24 +0000 (+0200) Subject: net: cdc_ncm: set reasonable padding limits X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~198^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43e4c6dfc0fd781e68f20caf563a06f5c6ece995;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed