]> 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, 23 Aug 2021 16:23:43 +0000 (09:23 -0700)
commit1a72c3d76aeafe4422ff20f81c4142efb983b7d7
treec9bbf5f88e4ad9be804924fe29d39e5aaace4ebe
parentb98f2ec0d635639987dcb6c6261f9013b35c3777
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>
(cherry picked from commit 69e8e8ea3d4be9da6b5bc904a444b51958128ff5)
sys/dev/e1000/e1000_82575.h
sys/dev/e1000/e1000_defines.h
sys/dev/e1000/if_em.c