]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixl(4): Fix MAC/VLAN filters accounting
authorKrzysztof Galazka <krzysztof.galazka@intel.com>
Wed, 15 Feb 2023 22:28:01 +0000 (14:28 -0800)
committerEric Joyner <erj@FreeBSD.org>
Wed, 15 Feb 2023 22:34:25 +0000 (14:34 -0800)
commit1d02c6b1b859e9f611bc8fe27ca3d2c16ec128c1
tree0477eeead1ba2f2aadf3dc0e465090d6f80a8072
parentb1a9e570fe2da0a43c41327d7ce21b27bf8257b8
ixl(4): Fix MAC/VLAN filters accounting

- Account for a filter required to enable reception of untagged frames
while registering and unregistering VLANs to avoid trying to add more
filters than HW supports

- While adding MAC/VLAN filters, pre-set matching method field in the
Admin Queue Command response buffer to expected error value to work
around an issue with some FW versions, which do not update that field if
operation fails, and be able correctly track which filters were
configured in HW.

- Remove unused IXL_MAX_FILTERS macro definition

- Update number of available MAC/VLAN filters as in newer FW versions it
was decreased by one.

- Simplify i40e_dma_mem structure

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reviewed by: erj@
Tested by: Gowtham Kumar Ks <gowtham.kumar.ks@intel.com>
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D37457
sys/dev/ixl/i40e_osdep.c
sys/dev/ixl/i40e_osdep.h
sys/dev/ixl/if_ixl.c
sys/dev/ixl/ixl.h
sys/dev/ixl/ixl_pf_main.c