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
Unknown Object (File)
Mon, Oct 28, 10:14 PM
Unknown Object (File)
Thu, Oct 24, 7:18 PM
Unknown Object (File)
Sep 26 2024, 6:46 PM
Unknown Object (File)
Sep 23 2024, 11:42 PM
Unknown Object (File)
Sep 22 2024, 9:22 PM
Unknown Object (File)
Sep 18 2024, 11:01 AM
Unknown Object (File)
Sep 13 2024, 2:33 AM
Unknown Object (File)
Sep 6 2024, 1:24 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