summaryrefslogtreecommitdiffstats
path: root/drivers/char/tlclk.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2014-05-30 09:31:05 +0200
committerDavid S. Miller <davem@davemloft.net>2014-06-03 01:01:30 +0200
commitf42763dbdf043c9996dfabf6d167eab28e016eb8 (patch)
tree87ac340cfb756e9b725f18f2d7b99be3414e68fd /drivers/char/tlclk.c
parentnet: cdc_ncm: always reallocate tx_curr_skb when tx_max increases (diff)
downloadlinux-f42763dbdf043c9996dfabf6d167eab28e016eb8.tar.xz
linux-f42763dbdf043c9996dfabf6d167eab28e016eb8.zip
net: cdc_ncm: inform usbnet when rx buffers are reduced
It doesn't matter whether the buffer size goes up or down. We have to keep usbnet and device syncronized to be able to split transfers at the correct boundaries. The spec allow skipping short packets when using max sized transfers. If we don't tell usbnet about our new expected rx buffer size, then it will merge and/or split NTBs. The driver does not support this, and the result will be lots of framing errors. Fix by always reallocating usbnet rx buffers when the rx_max value changes. Fixes: 68864abf08f0 ("net: cdc_ncm: support rx_max/tx_max updates when running") Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/char/tlclk.c')
0 files changed, 0 insertions, 0 deletions