mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 15:22:34 -04:00
iflib: Use if_alloc_dev() to allocate the ifnet
This ensures that the ifnet's NUMA affinity is accurate. Reviewed by: kbowling MFC after: 2 weeks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D46667
This commit is contained in:
parent
1f903953fb
commit
767723ddeb
1 changed files with 1 additions and 1 deletions
|
|
@ -5750,7 +5750,7 @@ iflib_register(if_ctx_t ctx)
|
|||
|
||||
CTX_LOCK_INIT(ctx);
|
||||
STATE_LOCK_INIT(ctx, device_get_nameunit(ctx->ifc_dev));
|
||||
ifp = ctx->ifc_ifp = if_alloc(IFT_ETHER);
|
||||
ifp = ctx->ifc_ifp = if_alloc_dev(IFT_ETHER, dev);
|
||||
|
||||
/*
|
||||
* Initialize our context's device specific methods
|
||||
|
|
|
|||
Loading…
Reference in a new issue