]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
e1000: Fix up HW vlan ops
authorKevin Bowling <kbowling@FreeBSD.org>
Wed, 15 Sep 2021 14:47:19 +0000 (07:47 -0700)
committerKevin Bowling <kbowling@FreeBSD.org>
Tue, 28 Sep 2021 16:34:18 +0000 (09:34 -0700)
commitd239e11a57c9b4ebc5e4289a8520511bb7b40b2d
treec684c8d5c6175bb3059a5af22cce745f2d2afdb9
parent22e68eadc50d7e750e0108688ad7ddaadc115a6b
e1000: Fix up HW vlan ops

2796f7ca:
* Don't reset the entire adapter for vlan changes, fix up the problems
* Add some functions for vlan filter (vfta) manipulation
* Don't muck with the vfta if we aren't doing HW vlan filtering
* Disable interrupts when manipulating vfta on lem(4)-class NICs
* On the I350 there is a specification update (2.4.20) in which the
suggested workaround is to write to the vfta 10 times (if at first you
don't succeed, try, try again). Our shared code has the goods, use it
* Increase a VF's frame receive size in the case of vlans

From the referenced PR, this reduced vlan configuration from minutes
to seconds with hundreds or thousands of vlans and prevents wedging the
adapter with needless adapter reinitialization for each vlan ID.

PR: 230996
Reviewed by: markj
Tested by: Ozkan KIRIK <ozkan.kirik@gmail.com>
Differential Revision: https://reviews.freebsd.org/D30002

22b20b45:
e1000: Fix variable typo

Forgot to git add this in last commit

Reported by: jenkins
Fixes: 2796f7cab107

(cherry picked from commit 2796f7cab10785ef40efbba97ef67ab319c96e9c)
(cherry picked from commit 22b20b45c9118bf6ef313c074cdb107a1eaca78e)
sys/dev/e1000/if_em.c