Page MenuHomeFreeBSD

ixl(4): Fix VLAN HW filtering
ClosedPublic

Authored by kgalazka on Jan 13 2021, 3:42 PM.
Tags
None
Referenced Files
F169749949: D28137.diff
Wed, Sep 2, 11:11 AM
F169700767: D28137.id83381.diff
Wed, Sep 2, 8:09 AM
Unknown Object (File)
Mon, Aug 31, 8:13 AM
Unknown Object (File)
Sat, Aug 29, 8:14 AM
Unknown Object (File)
Fri, Aug 28, 11:55 PM
Unknown Object (File)
Thu, Aug 27, 6:30 AM
Unknown Object (File)
Tue, Aug 25, 7:24 AM
Unknown Object (File)
Sun, Aug 9, 9:02 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