Page MenuHomeFreeBSD

ixl(4): Fix VLAN HW filtering
ClosedPublic

Authored by kgalazka on Jan 13 2021, 3:42 PM.
Tags
None
Referenced Files
F131719312: D28137.id82214.diff
Fri, Oct 10, 3:06 PM
Unknown Object (File)
Tue, Oct 7, 12:31 AM
Unknown Object (File)
Wed, Oct 1, 1:02 AM
Unknown Object (File)
Sat, Sep 20, 9:10 PM
Unknown Object (File)
Sat, Sep 13, 10:10 AM
Unknown Object (File)
Sep 9 2025, 11:07 AM
Unknown Object (File)
Sep 5 2025, 3:08 AM
Unknown Object (File)
Aug 28 2025, 4:58 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable