From nobody Wed Dec 04 18:35:19 2024 X-Original-To: dev-commits-src-main@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 4Y3R5z5XrTz5g1QB; Wed, 04 Dec 2024 18:35:19 +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 4Y3R5z3JkCz4v8W; Wed, 4 Dec 2024 18:35:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733337319; 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=cPZCayAA3NKNjrsTFhPD0g/fdaafuY0xnTeibgOK5lI=; b=DgXrGiV4HpEVpa883pZMbDw2qoAen9+Re0pT72n/pg20lJKW2MeV99mYQ4p+TXUmXRby/s A9clIsq6K0pyXTpIDC6f9EuLPSTNBpnZbXg47XPDDZ0LNkHgA6SxE2QvJmGbSpdCvtxHZK JzAExoVK+cOuQYzyyem6Xx4OnoHlYeSQw5bW9SNYomU6EGXipgmvMdlpxH7CozSYqOnE7C oZgGvf8+xGzkaHHUawGNemx27jorFDwzfJh1WeiFKNuFeVEibvKg9kzpLMBz8SDEk6XY0Q +VZGI/hMERI8M48rmfZJaWhchaTMXdZv8bkpy5W5PQaRwUqSS2drZOKtE9CoCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733337319; 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=cPZCayAA3NKNjrsTFhPD0g/fdaafuY0xnTeibgOK5lI=; b=V1HI25IJpyB+XuCuCc1H7yaPsrj5CA9qSEB99dfhQmC2PQhcmyvYrFwqKwA67XQeZFgDep lbItEie5a093nczHppGd5Iso0oYhrteVEStcvY39GJS7S+kImgfZyWVizyVfVnmxfwG8HL fkc6044GYZJJsjE8faIclLRGBn7xCTbSzsU9ZcFtNI0eiY5WrFT//UBXRpzj/r7MS5V9a5 MnqquXiJXf42mj/irRGq97aW3z1mAmnToaexHA0dJ7lH3/62QoC59LGBvmYzc5HemZsPGZ b9aC8NMYwxN17sJk+TiS/IESnv9lzJ5upB6MfzjKRU6RqATWqVog1Ync49V34A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733337319; a=rsa-sha256; cv=none; b=oEf5A+8C02jxQu/pq4YNJ9xJ7D2AT2bVhMldWzFMHNoRR/+jKL2CDIJ+W1mpR6udM5GFT9 y6KH1lbaDUr+6zszTW/ijSoJ6I/4v3lfsbc7uTmaqSsmd3P9R83RlMcdi0k21kpEKGRFDR 9pciSX3DfJ3LMl/qDV6ewFMHAZ0utpkObBb1GayPrsucablJ1wAzWJn+Cetasg0MGpCyUp A+w9VfTk7K5spP2mrGPRXoXngg3vr/4yYJGwvPLB82NMPVtBXewtv5r/uCfLh51PeSASxw +HMYDvotmiGa1BUlGf7sHzaFa69PqsHWFcnp3GLjT0qiAXH69gdmA3Es4Zaoww== 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 4Y3R5z2wSSzJTt; Wed, 4 Dec 2024 18:35:19 +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 4B4IZJQI078132; Wed, 4 Dec 2024 18:35:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B4IZJWq078129; Wed, 4 Dec 2024 18:35:19 GMT (envelope-from git) Date: Wed, 4 Dec 2024 18:35:19 GMT Message-Id: <202412041835.4B4IZJWq078129@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: 3d642b0f71c5 - main - iflib: Set the NUMA domain in receive packet headers List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 3d642b0f71c501dd9ee7aa0487788f619900d297 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=3d642b0f71c501dd9ee7aa0487788f619900d297 commit 3d642b0f71c501dd9ee7aa0487788f619900d297 Author: Mark Johnston AuthorDate: 2024-12-04 01:13:02 +0000 Commit: Mark Johnston CommitDate: 2024-12-04 16:22:50 +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 --- sys/net/iflib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 284d226a7ac6..6644197f7d5b 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;