iflib packet->numa_domain set
This commit is contained in:
parent
4f19a40541
commit
13b8fe5dcd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user