From 13b8fe5dcdede73d5171191e534667706fad24dd Mon Sep 17 00:00:00 2001 From: quackerd Date: Thu, 8 Dec 2022 03:07:07 +0100 Subject: [PATCH] iflib packet->numa_domain set --- sys/net/iflib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index f447065b0057..be98dddc5c5c 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -2853,6 +2853,9 @@ iflib_rxd_pkt_get(iflib_rxq_t rxq, if_rxd_info_t ri) } m->m_pkthdr.len = ri->iri_len; m->m_pkthdr.rcvif = ri->iri_ifp; +#ifdef NUMA + m->m_pkthdr.numa_domain = ri->iri_ifp->if_numa_domain; +#endif m->m_flags |= ri->iri_flags; m->m_pkthdr.ether_vtag = ri->iri_vtag; m->m_pkthdr.flowid = ri->iri_flowid; @@ -5830,7 +5833,7 @@ iflib_register(if_ctx_t ctx) type = IFT_PPP; } else type = IFT_ETHER; - ifp = ctx->ifc_ifp = if_alloc(type); + ifp = ctx->ifc_ifp = if_alloc_dev(type, dev); if (ifp == NULL) { device_printf(dev, "can not allocate ifnet structure\n"); return (ENOMEM);