/[base]
ViewVC logotype

Revision 339207


Jump to revision: Previous Next
Author: shurd
Date: Fri Oct 5 20:16:20 2018 UTC (5 years, 9 months ago)
Changed paths: 1
Log Message:
Fix igb corrupting checksums with BPF and VLAN

When using a vlan with igb and the vlanhwcsum option, any mbufs which
already had the TCP, UDP, or SCTP checksum calculated and therefore don't
have the CSUM_[IP|IP6]_[TCP|UDP|SCTP] bits set in the csum_flags field would
have the L4 checksum corrupted by the hardware.

This was caused by the driver setting E1000_TXD_POPTS_TXSM any time a
checksum bit was set OR a vlan tag was present.

The patched driver only sets E1000_TXD_POPTS_TXSM when an offload is
requested.

PR:		231416
Reported by:	pi
Approved by:	re (gjb)
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D17404


Changed paths

Path Details
Directoryhead/sys/dev/e1000/igb_txrx.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27