re(4) checksum offload problem

Jelte Jansen jelte at NLnetLabs.nl
Tue Oct 16 05:06:06 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pyun YongHyeon wrote:
>  > i'm seeing bad IP/UDP checksums on packets on a realtek gigabit network
>  > card. Turning offloading off (ifconfig -txcsum) seems to make the
>  > problem disappear.
>  > 
> Would you give me more information for your network configuration?
> Which host use re(4) driver? Which host was used to capture the
> traffic?
> 
> If you see bad checksum messages on hosts with Tx checksum enabled
> driver it's quite normal to see bad checksummed frames. Hardware
> will insert computed checksum into the frame after bpf listeners
> see the frame.
> 

Ah, right, they both run re(4) drivers, so what i thought was bad
checksums from the other host were actually not-filled-in-yet checksums
for response packets to those packets (...).

I get it now, when you don't offload they are computed before the
filter, so in that case you don't get these 'errors'. But with
offloading it's not done until the packets are sent on the wire.

Annoying, that :)

But thanks, and sorry for the noise.

Jelte

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFHFKkv4nZCKsdOncURAhObAJ4pR8rZ+bpa3zTjbjm29Hd1mJr7RgCYqF3Y
2SJZjpgn0JyomTUiDnU/Sw==
=q3u0
-----END PGP SIGNATURE-----


More information about the freebsd-current mailing list