HomeFreeBSD

ixl(4): Fix VLAN HW filtering

Description

ixl(4): Fix VLAN HW filtering

X700 family of controllers has limited number of available VLAN
HW filters. Driver did not handle properly a case when user
assigned more VLANs to the interface which had all filters
already in use. Fix that by disabling HW filtering when
it is impossible to create filters for all requested VLANs.
Keep track of registered VLANs using bitstring to be able
to re-enable HW filtering when number of requested VLANs
drops below the limit.

Also switch all allocations to use M_IXL malloc type
to ease detecting memory leaks in the driver.

Reviewed by: erj
Tested by: gowtham.kumar.ks@intel.com
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28137

Details

Provenance
krzysztof.galazka_intel.comAuthored on Feb 3 2021, 11:22 PM
erjCommitted on Feb 4 2021, 11:33 PM
Reviewer
erj
Differential Revision
D28137: ixl(4): Fix VLAN HW filtering
Parents
rG2bd4ff2d8911: loader.efi: There are systems without ConOut, also use ConOutDev
Branches
Unknown
Tags
Unknown