iflib: call device's if_init function during vlan initialization.

Submitted by:	bhargava.marreddy@broadcom.com
Reviewed by:	shurd
Sponsored by:	Broadcom
Differential Revision:	https://reviews.freebsd.org/D12098
This commit is contained in:
sbruno 2017-08-23 21:49:56 +00:00
parent 134219519a
commit f6aa72734a

View File

@ -3927,7 +3927,7 @@ iflib_vlan_register(void *arg, if_t ifp, uint16_t vtag)
IFDI_VLAN_REGISTER(ctx, vtag);
/* Re-init to load the changes */
if (if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER)
iflib_init_locked(ctx);
iflib_if_init_locked(ctx);
CTX_UNLOCK(ctx);
}
@ -3946,7 +3946,7 @@ iflib_vlan_unregister(void *arg, if_t ifp, uint16_t vtag)
IFDI_VLAN_UNREGISTER(ctx, vtag);
/* Re-init to load the changes */
if (if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER)
iflib_init_locked(ctx);
iflib_if_init_locked(ctx);
CTX_UNLOCK(ctx);
}