]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge(4): add information if TSO workaround is required
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 30 Nov 2018 07:05:23 +0000 (07:05 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 30 Nov 2018 07:05:23 +0000 (07:05 +0000)
commit5037810f7e46272812a8521397e47190dec308ee
tree5301f7bc51f32c265d473a3600286382bcff91c4
parent6b231fec923a354e6f75e8c924350cec3ddc46c3
sfxge(4): add information if TSO workaround is required

In SF bug 61297 it's been confirmed that the hardware does not always
calculate the TCP checksum correctly with TSO sends.

The value of the Total Length field (IPv4) or Payload Length field
(IPv6) is the critical factor. We're sufficiently confident that if
these fields are zero then the checksum will be calculated correctly.

The information may be used by the drivers to check if the workaround is
required when FATSOv2 is implemented.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Differential Revision:  https://reviews.freebsd.org/D18258
sys/dev/sfxge/common/efx.h
sys/dev/sfxge/common/hunt_nic.c
sys/dev/sfxge/common/medford2_nic.c
sys/dev/sfxge/common/medford_nic.c