diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2026-02-02 12:26:31 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2026-02-05 05:14:43 +0000 |
| commit | 3cfe90545f016fa190158aa4830f3256e01a7cb2 (patch) | |
| tree | a737b5abde7a307af502b8dce8fe02fb6765e88b /sys/crypto/libsodium/limits.h | |
| parent | b5e328b194561a50a6991e0a506a2532eec32ecc (diff) | |
e1000: Fix setting the promiscuous modestable/14
The variable reg_rctl stores the value read from reg E1000_RCTL. It
may contain bits E1000_RCTL_VFE and E1000_RCTL_CFIEN which control
VLAN hardware filter feature. The promiscuous mode implies all tagged
or untagged packets should be accepted, so the VLAN hardware filter
feature should be disabled when enabling the promiscuous mode.
Calling em_if_vlan_filter_disable() did the task, but later writing
the value of reg_rctl back to the reg E1000_RCTL may restore the
feature.
Move the calling of em_if_vlan_filter_disable() after writing the reg
to fix that.
PR: 292759
Reviewed by: kbowling
Tested by: vova@zote.me
Fixes: 2796f7cab107 e1000: Fix up HW vlan ops
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D54973
(cherry picked from commit e63ee5fedb8dab51f1bd6d24cc650b68d9663db5)
(cherry picked from commit 8880678b7a47ccfdcc14d3e7cad7f137862dccea)
Diffstat (limited to 'sys/crypto/libsodium/limits.h')
0 files changed, 0 insertions, 0 deletions
