]> git.baikalelectronics.ru Git - uboot.git/commit
net: cpsw: ti: Reap completed packets before stopping interface
authorAlex Kiernan <alex.kiernan@gmail.com>
Sat, 12 May 2018 07:30:02 +0000 (07:30 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 13 Jun 2018 18:54:16 +0000 (13:54 -0500)
commit0cee227f23c24c2bc1e23ce5ce5ad68a11694e44
treea318e8fd60b09cb01ee540c06af60fca201adb1d
parent33957dce04a4ee47997d2ff409a641599383f75a
net: cpsw: ti: Reap completed packets before stopping interface

If you send a final packet just before stopping the interface (e.g. a final
ACK as part of the UDP fastboot protocol), then that packet isn't reliably
delivered onto the wire.

Reap packets prior to stopping the interface to ensure any which are
in-flight make it out. Also remove buffer and len from the call to
cpdma_process() as we weren't using them on their return.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/cpsw.c