iflib packet->numa_domain set

This commit is contained in:
quackerd 2022-12-08 03:07:07 +01:00
parent 4f19a40541
commit 13b8fe5dcd

View File

@ -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);