Home
last modified time | relevance | path

Searched hist:"25 ac1dd5c7fb740cadec19794b9e12814c921cda" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/net/
H A Diflib.cdiff 25ac1dd5c7fb740cadec19794b9e12814c921cda Thu Dec 21 02:22:36 CET 2017 Stephen Hurd <shurd@FreeBSD.org> Don't call tcp_lro_rx() unless hardware verified TCP/UDP csum

It seems that tcp_lro_rx() doesn't verify TCP checksums, so
if there are bad checksums in the packets caused by invalid data, the
invalid data will pass through without errors.

This was noticed with the igb driver and a specific internet host:
fetch http://www.mpfr.org/mpfr-current/mpfr-3.1.6.tar.xz -o test.bin && sha256 test.bin
Would result in a different value sometimes.

This ends up making LRO require RXCSUM to be enabled, and RXCSUM to
support TCP and UDP checksums.

PR: 224346
Reported by: gjb
Reviewed by: sbruno
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D13561