]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixl(4): Fix VLAN HW filtering
authorKrzysztof Galazka <krzysztof.galazka@intel.com>
Wed, 3 Feb 2021 23:22:55 +0000 (15:22 -0800)
committerEric Joyner <erj@FreeBSD.org>
Thu, 4 Feb 2021 23:33:42 +0000 (15:33 -0800)
commit7d4dceec103039e2b2fa90793ceeb71a8d6684aa
tree20ae5361f4e1beb0424648372f7fa4206a0b4b2a
parent2bd4ff2d8911009283e4e615ca4aad35a845f48b
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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28137
sys/dev/ixl/i40e_osdep.c
sys/dev/ixl/iavf.h
sys/dev/ixl/iavf_vc.c
sys/dev/ixl/if_iavf.c
sys/dev/ixl/if_ixl.c
sys/dev/ixl/ixl.h
sys/dev/ixl/ixl_iw.c
sys/dev/ixl/ixl_pf.h
sys/dev/ixl/ixl_pf_iflib.c
sys/dev/ixl/ixl_pf_iov.c
sys/dev/ixl/ixl_pf_main.c