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
Approved by: re (gjb)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28137

(cherry picked from commit 7d4dceec103039e2b2fa90793ceeb71a8d6684aa)
(cherry picked from commit 7e166d608eecf0188bbb7edf6b3d9abffe1dfc6b)

Details

Provenance
krzysztof.galazka_intel.comAuthored on Feb 3 2021, 11:22 PM
erjCommitted on Mar 11 2021, 1:06 AM
Reviewer
erj
Differential Revision
D28137: ixl(4): Fix VLAN HW filtering
Parents
rG64b30c36712e: Add a few missed files to libclang_rt.profile-<arch>.a
Branches
Unknown
Tags
Unknown