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:
parent
134219519a
commit
f6aa72734a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user