]> git.baikalelectronics.ru Git - kernel.git/commit
netdev: bfin_mac: fix malformed UDP packet transmission when polling with KGDB
authorSonic Zhang <sonic.zhang@analog.com>
Fri, 29 May 2009 03:40:43 +0000 (03:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2009 22:49:08 +0000 (15:49 -0700)
commitdcab5d5caedd2c9fb93d3e44fe2830bb2e7ea0b2
treea52e5273d1e1ba281695808186fddfa07436722c
parentce92024274471b31003b5ac15d6dee66bc396f8c
netdev: bfin_mac: fix malformed UDP packet transmission when polling with KGDB

Writes to the DMA descriptors may sit in the internal Blackfin data buffers
and not actually be available when the DMA engine goes to fetch them.  This
does not typically happen, but when dealing with short/fast packets such as
UDP and polling KGDB, this occurs much more frequently.  Same goes for
heavy loads as seen by netperf tests or large scp transfers.  So force the
buffers to drain with SSYNC otherwise we get random malformed packets.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bfin_mac.c