Page MenuHomeFreeBSD

ixl(4): Fix VLAN HW filtering
ClosedPublic

Authored by krzysztof.galazka_intel.com on Jan 13 2021, 3:42 PM.
Tags
None
Referenced Files
F82856823: D28137.diff
Fri, May 3, 6:32 AM
Unknown Object (File)
Thu, Apr 25, 11:14 AM
Unknown Object (File)
Feb 24 2024, 8:18 PM
Unknown Object (File)
Jan 11 2024, 4:36 AM
Unknown Object (File)
Jan 3 2024, 9:21 PM
Unknown Object (File)
Dec 23 2023, 2:28 AM
Unknown Object (File)
Dec 19 2023, 10:22 PM
Unknown Object (File)
Dec 10 2023, 3:01 PM
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