sfc: Pad packets to 33 bytes to prevent TX packet parser lockup
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 20 Mar 2009 13:25:39 +0000 (13:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2009 02:06:55 +0000 (19:06 -0700)
commitbb145a9e28c32a37f35308bb32180b59e358a3a1
treefae2b23b306e31aa4264eee1a3085daf5158a853
parente84665c9cb4db963393fafad6fefe5efdd7e4a09
sfc: Pad packets to 33 bytes to prevent TX packet parser lockup

The packet parser used in the TX data path for locating checksum
fields can lose synchronisation with the TX queue manager when
handling packets that look like IPv4 but are too short (17-32 bytes).
Work around this by padding to 33 bytes.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/tx.c
drivers/net/sfc/workarounds.h