diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2024-09-19 09:21:05 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2024-09-19 09:21:05 +0000 |
| commit | 767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7 (patch) | |
| tree | 23c96e91ecce6618dc701185c7c2500123a33e70 | |
| parent | 1f903953fbf8615bb611db059417177f6cee07bd (diff) | |
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
| -rw-r--r-- | sys/net/iflib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c index c6a01624436c..a595a5f2dd0f 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -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 |
