From nobody Wed Dec 18 13:46:53 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 4YCw2k2gtsz5hMv9; Wed, 18 Dec 2024 13:46:54 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YCw2j71t4z4DH6; Wed, 18 Dec 2024 13:46:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734529614; 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=hy3sASSvNUIauhRqKXnpHTR/LgZmCMQOZm3i6nSKr1M=; b=iDBfV8NCQ4PE8QId3vFp0/4MwkPtl/MVgcPDN2n/duLBGO+NxBapfjhNbtLpcGeCFGgY0X E7Rjh0iYFtUVy11YIs2kEdAgsdVYjItz6Ikzg8dQbG78AENSpPEyRQXCydjIFeaLQNBHoN /OT8gixdo2gdSpTCnb+o4TR+O7dsqJno6+QW4NpPPTMnUYhE2cS2NN5Syn1yNnt8KmYAiV dnpigO0ZcQqG5ZJCDShYCps0ybysjsW2nwvPsXVJdpe136zMmmkMdzQLtc/vJEMlRlUWLc lwTUlqNgX8pSswRCRxGbVaVxr6YvQbSTSIu7Bm+Yd3GjpSmdOo0hCBOA43LZLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734529614; 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=hy3sASSvNUIauhRqKXnpHTR/LgZmCMQOZm3i6nSKr1M=; b=ekx4WUowaFmx2Qyx+CNYSXHQTgZTqYhJnJd0U+iHty7pn6vzt85kdDdAgiqPTTfv4cfZoz RnsBC3rqqT0vIksJBMhI5Kdg0utsK1w0jbvF2BafqaLoD6n7y+w82/I1Ydqk0JFhNL15Dx ea8X22Kcq4C8Z8LVgqjn1m96HGUkg6kp9S+ZDm7vnx8DEmlJN06vEynkgS3WvrABiZkUUh Xf5lN7PpMJ0EMJfL9MKCwMnk+M87lTZ3GoxpRCy/3yonnftEoXmKDO5gxnn2LGzZiL0O1M Usr370v2uh1XEytcu6ntL652kTj3YmUjPNM6+LNFoHsSe0Xm7Tp0YcQaj5NswA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734529614; a=rsa-sha256; cv=none; b=YPd+e0o4dfjzDrblwZAYFZHmoxz3hcwBOlVWkFYVsy2RxzeiUuEHAO3uzjwUelGG8k29Ao SBTYgQYyZOktRShWf6fkTMcZBZj8coU0E9R+ZTMXDh35ZDy3qFwQvPyVUPYX5jI3HxyQzD nTLBHTzmYMLpZzv7weNFxdnoqh2mrm4d09sxFYqFzjL9TlQ5WZ/Vd3dcQYQDAeuJ1gzOgE PljJyGGFQYkCwwlP3Q8l5aywdgbahjX3U7VFRPMi7BV+dqzGx4HqK3hMKbvtj3zq+3xzwt LBG2qyKADx87VQGfvLW9nihg2cymUv1HEbGMpEyJ3IIQzJ0z5KLHFSSgs9Iorg== 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 4YCw2j67XCz190p; Wed, 18 Dec 2024 13:46:53 +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 4BIDkrF3019264; Wed, 18 Dec 2024 13:46:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BIDkri6019261; Wed, 18 Dec 2024 13:46:53 GMT (envelope-from git) Date: Wed, 18 Dec 2024 13:46:53 GMT Message-Id: <202412181346.4BIDkri6019261@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: 113875f91607 - stable/14 - iflib: Set the NUMA domain in receive packet headers 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: 113875f91607f385e87a54e017ac61f842df3282 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=113875f91607f385e87a54e017ac61f842df3282 commit 113875f91607f385e87a54e017ac61f842df3282 Author: Mark Johnston AuthorDate: 2024-12-04 01:13:02 +0000 Commit: Mark Johnston CommitDate: 2024-12-18 13:43:49 +0000 iflib: Set the NUMA domain in receive packet headers Reading PR 273559 made me realize that commit 767723ddebe9 is incomplete. iflib should set the NUMA domain of received packets before passing them to protocol layers. PR: 273559 Reviewed by: zlei, kbowling, erj Fixes: 767723ddebe9 ("iflib: Use if_alloc_dev() to allocate the ifnet") MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47841 (cherry picked from commit 3d642b0f71c501dd9ee7aa0487788f619900d297) --- sys/net/iflib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 997da7ca5b00..93a2ca526072 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -2880,6 +2880,9 @@ iflib_rxd_pkt_get(iflib_rxq_t rxq, if_rxd_info_t ri) m->m_flags |= ri->iri_flags; m->m_pkthdr.ether_vtag = ri->iri_vtag; m->m_pkthdr.flowid = ri->iri_flowid; +#ifdef NUMA + m->m_pkthdr.numa_domain = if_getnumadomain(ri->iri_ifp); +#endif M_HASHTYPE_SET(m, ri->iri_rsstype); m->m_pkthdr.csum_flags = ri->iri_csum_flags; m->m_pkthdr.csum_data = ri->iri_csum_data;