From nobody Fri Oct 04 15:57:00 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 4XKtTS6L1yz5XxWp; Fri, 04 Oct 2024 15:57:00 +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 4XKtTS48BBz4173; Fri, 4 Oct 2024 15:57:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728057420; 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=1KPO9t6YTq8L/oONu9jN4u27Z1AsLhTf7TS55K0T0l8=; b=qF4yonHd4wvCVttxzIzifijQjjESyeTmoCZw8v/lZburIfZw176toXNi0x/yhsRVTOkTYQ s/pd4RbeADH4/eUvHAvsv2ZYUArLPsmpVT15GjY0rorXfjF9NQiJYIG/zTY0hUiViKNp3Y BkqZiib8bDsgsHpc48KUIdVeqIP6lzyz2ocaefPjEfMBgyTGqb/zvCRHwet5m4+O+zShro uWjpRDcogVt1cS9iDcEqek/bYNjwIiCaGMRyfewbKsRnyHEnziGXXojjwGHrlKKBhVoJKa kx3N+CZCaFGbX+8wvq0loEuHoqoJZ1N03wZHSp2kVPukGTO5nt3+9L9F0Tna9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728057420; 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=1KPO9t6YTq8L/oONu9jN4u27Z1AsLhTf7TS55K0T0l8=; b=X6Mf1yWKx9Y2sJa0UhaFi12dYVPeh0nSb22He79Mzv31g6xjrwwMY8Iztf2IwO5joUV7YE OdvMbbmYLUK8CmeubKEq/Zqtw4oIPurJT6qk8TSzQT+/kbvXAj0Zpdch7+FgTSMIBlMFfn SPj5QmZJjU4KzSJEcGP4Q4bcln3CCyBU0yJjv5Cn9Uk5tO3OY9rI4XePjCpzU0D1gvsoi5 5yAr89dAoRv0xIMCVJ14afoFNBb1p+tzzHxRtvBrMe6/A/h5hwtLEkhmAsyTg+OF1syxxg C1G7VbWYHHqGPnTJxtzVRLzcbAHqGLr4fm2TdyA3dmJgh5xDPIf0JaOH9ySUJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728057420; a=rsa-sha256; cv=none; b=DAd2euNaJkItU6qleCGLWxil4ymKXq3kBN3M8tUagFEowsXKa1kTuNLOW4xtP61zYxtL1i RAfF70rVr19JhKvZ++3kCltq3vpGhUUOekaNZaDf1zcaxH9klaF8V//9P0Lax6atWqxEDz ILXZO0J2yU2RymRRw1NZGRlANO/Yv8YxlwtjtENKkzc+TfVY/sxL5XBgF6l0FxYmxToIS3 vRKPWQ26xSvuqeEocUzbkiq1XpRW6l11ETymRLZvRJnYsJLKNUVF4pWGnjY5Jbxf56k5fs Vlv47i3J5Cgxe59r9lMWH69QRzBj4jDs0ieDJDHJtODN9Vhz6eLc2cnrZG97Vw== 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 4XKtTS3kp0zhFy; Fri, 4 Oct 2024 15:57:00 +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 494Fv0GA048333; Fri, 4 Oct 2024 15:57:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 494Fv0Wj048330; Fri, 4 Oct 2024 15:57:00 GMT (envelope-from git) Date: Fri, 4 Oct 2024 15:57:00 GMT Message-Id: <202410041557.494Fv0Wj048330@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 7ebda9886eda - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 7ebda9886eda8956df5a24423396a52ffce5e4e6 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=7ebda9886eda8956df5a24423396a52ffce5e4e6 commit 7ebda9886eda8956df5a24423396a52ffce5e4e6 Author: Mark Johnston AuthorDate: 2024-09-19 09:21:05 +0000 Commit: Mark Johnston CommitDate: 2024-10-04 15:56:42 +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 (cherry picked from commit 767723ddebe9c76a2d4a45a50d9b0efc9f2f91d7) --- 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 fa6227f3f80a..a2e2c3efa1ad 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