freebsd-dev/sys/dev/mxge
Andrew Gallatin 4ed8ca8f25 Fix a TSO checksum bug on mxge(4):
The Myri10GE NIC will assume all TSO frames contain partial checksum,
and will emit TSO segments with bad TCP checksums if a TSO frame
contains a full checksum.  The mxge driver takes care to make sure
that TSO is disabled when checksum offload is disabled for this
reason.  However, modules that modify packet contents (like pf) may
end up completing a checksum on a TSO frame, leading to the NIC emitting
TSO segments with bad checksums.

To workaround this, restore the partial checksum in the mxge driver
when we're fed a TSO frame with a full checksum.

Reported by: Bob Healey

MFC after:	3 days
2010-11-22 16:43:05 +00:00
..
eth_z8e.h
ethp_z8e.h
if_mxge_var.h
if_mxge.c
mcp_gen_header.h
mxge_eth_z8e.c
mxge_ethp_z8e.c
mxge_lro.c
mxge_mcp.h
mxge_rss_eth_z8e.c
mxge_rss_ethp_z8e.c
rss_eth_z8e.h
rss_ethp_z8e.h