]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
e1000: always enable PCSD when RSS hashing
authorKevin Bowling <kbowling@FreeBSD.org>
Mon, 16 Aug 2021 17:17:34 +0000 (10:17 -0700)
committerKevin Bowling <kbowling@FreeBSD.org>
Mon, 16 Aug 2021 17:24:01 +0000 (10:24 -0700)
commit69e8e8ea3d4be9da6b5bc904a444b51958128ff5
treed6719a751f7e3b7e9dd09b365ff5d09374d7bcdb
parent8fa63f44e64ebac444a4ac6451ac5e150cdcf8b1
e1000: always enable PCSD when RSS hashing

To enable RSS hashing in the NIC, the PCSD bit must be set.

By default, this is never set when RXCSUM is disabled - which
causes problems higher up in the stack.

While here improve the RXCSUM flag assignments when enabling or
disabling IFCAP_RXCSUM.

See also: https://lists.freebsd.org/pipermail/freebsd-current/2020-May/076148.html

Reviewed by: markj, Franco Fichtner <franco@opnsense.org>,
Stephan de Wit <stephan.dewt@yahoo.co.uk>
Obtained from: OPNsense
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31501
Co-authored-by: Stephan de Wit <stephan.dewt@yahoo.co.uk>
Co-authored-by: Franco Fichtner <franco@opnsense.org>
sys/dev/e1000/e1000_82575.h
sys/dev/e1000/e1000_defines.h
sys/dev/e1000/if_em.c