aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-12-04 01:13:02 +0000
committerMark Johnston <markj@FreeBSD.org>2024-12-04 16:22:50 +0000
commit3d642b0f71c501dd9ee7aa0487788f619900d297 (patch)
tree06864af97e3f92218b7543e641b1dcfd9d583818
parentfbd3448614fbd7bd92e7d34c3bfd2592a07391e3 (diff)
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
-rw-r--r--sys/net/iflib.c3
1 files changed, 3 insertions, 0 deletions
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;