]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: no point in filling up the NTBs if we send ZLPs
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:49 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:02:03 +0000 (02:02 -0400)
commitb359ff6ad335179fe0a9c4f69fb041556c8a4e7d
tree6d5d366360ae74fe8cfde8a15170f25f9ae7df36
parent27f3f5407dbac0c3ec4aa91d7e35903f986a1ec7
net: cdc_ncm: no point in filling up the NTBs if we send ZLPs

Padding NTBs to max size is part of the support for devices
optimizing their DMA transfers. This optimization depends on
max sized NTBs not being ZLP terminated. So we are much better
off dropping the padding if we are going to send a ZLP anyway.

Cc: Alexey Orishko <alexey.orishko@gmail.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