git: 767723ddebe9 - main - iflib: Use if_alloc_dev() to allocate the ifnet
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Sep 2024 09:53:34 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7
commit 767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-09-19 09:21:05 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-09-19 09:21:05 +0000
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
---
sys/net/iflib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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