From nobody Thu Sep 19 09:53:34 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X8W726jc2z5Vmns; Thu, 19 Sep 2024 09:53:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X8W725Yb0z4Q5V; Thu, 19 Sep 2024 09:53:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726739614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bZPMqfKplfBj9YuE2oLQeMDKFG8HBYqruJF8hpwbXAk=; b=xTNvoqbQ+eux2yvvTvPs1FW9spcNvm0GUd5wUQuHZ3gTlfEFWeXB5VsdRHRqEJ7hF4pMdg EiWHNisGMaJNtg6nVMuklcTQjIwS6ltr782KiKGE4WqD9dsLl0pSQQp1g8GEjmkXFhrMjW mg5z2vwWotndF6rFUI+rvfXx/xAE4E8J12YLGGKJWC1c3MgGehMyTBuGlXExrtJEMqho7Q HHDGAyX9jkUwWoFcDyjUVLXzsb/9lTDVg72tZJ3Abd0dpicn3JTG9LJfNto2+OcxQ2HH7B gEOMQMa1CtCfJfKtpO+D2nuh0Z4A8tJoyD/OkQZY9w/sYz22xGf+3BhPZ/RKXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726739614; a=rsa-sha256; cv=none; b=pu/MS0dkguFMLS19nfp+bD6uztxCca7nfCP23ca2/52eS6AZvC6RAjoKaDw9gd7H+6w6E0 qKJJwfEnBmOXmyGkpdKWRbfK7Nqd2/2vPh3zpLwHf/2Y539B3pYxtWxe7Nbf0NvrHpNhC8 8wkJ1qyQ6Ad/bvD1lt7o8i1djQVNDpXIfVT7I+xGZxrbak9W32I8aZJg/yWc/q2t++fx+D yK6v6/58i5cdzmXIWdbVX0VxyVMVpI0FofpYUJRGpTrAiZo2EM8AqDWy1q973DSWz+g5PS QhNLXFpsFX5upgpfVGeW0nD3OyzuWPJlWFmJ1jGHKpVC2hd/ZlRYWKpuZZWfaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726739614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bZPMqfKplfBj9YuE2oLQeMDKFG8HBYqruJF8hpwbXAk=; b=SkCBPl8rtoAyK6EDFGBnb4UcnI4vWD/TVjLniKnwpUatPAUhoISZ4oe9SrIyd+EzKA8wUu /+HNDq4oLfxazPWd5K6TAeCY6td9afUxEgT4fqPJo644NJ7my7ImNfWgFNYcfiNwoQhkoR kD7vocNU1EF7k5uz9MV4oq1CmyAfzarEvxgVWMaFdxrk2pmNxU+tVdAxzgGUrjV3upVitl uee7ICvv2bDGLZJob1pSMBRRoefJz+z1yH/Sqf9PUfH/U67CCOmpaKCZFB2JWWoSpZy1zW nHkGPG+HsZC4e5kJuAwvAO/6LpfylOgWLqvShVPqkoTz1SRmn1i/CcYkyIVh4Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X8W7258xBz11lC; Thu, 19 Sep 2024 09:53:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48J9rYOh075246; Thu, 19 Sep 2024 09:53:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48J9rYK5075243; Thu, 19 Sep 2024 09:53:34 GMT (envelope-from git) Date: Thu, 19 Sep 2024 09:53:34 GMT Message-Id: <202409190953.48J9rYK5075243@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 767723ddebe9 - main - iflib: Use if_alloc_dev() to allocate the ifnet List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7 commit 767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7 Author: Mark Johnston AuthorDate: 2024-09-19 09:21:05 +0000 Commit: Mark Johnston 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