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
Differential Revision: https://reviews.freebsd.org/D28137

(cherry picked from commit 7d4dceec103039e2b2fa90793ceeb71a8d6684aa)

Details

Provenance
krzysztof.galazka_intel.comAuthored on Feb 3 2021, 11:22 PM
erjCommitted on Oct 19 2022, 9:31 PM
Reviewer
erj
Differential Revision
D28137: ixl(4): Fix VLAN HW filtering
Parents
rGb541e44b7c30: ldd: guard against stack overflow reading corrupted files.
Branches
Unknown
Tags
Unknown