return rid;
}
-static void *hn_rndis_alloc(struct hn_data *hv, size_t size)
+static void *hn_rndis_alloc(size_t size)
{
- return rte_zmalloc_socket("RNDIS", size, PAGE_SIZE,
- hv->vmbus->device.numa_node);
+ return rte_zmalloc("RNDIS", size, PAGE_SIZE);
}
#ifdef RTE_LIBRTE_NETVSC_DEBUG_DUMP
uint32_t rid;
reqlen = sizeof(*req) + idlen;
- req = hn_rndis_alloc(hv, reqlen);
+ req = hn_rndis_alloc(reqlen);
if (req == NULL)
return -ENOMEM;
{
struct rndis_halt_req *halt;
- halt = hn_rndis_alloc(hv, sizeof(*halt));
+ halt = hn_rndis_alloc(sizeof(*halt));
if (halt == NULL)
return -ENOMEM;
uint32_t comp_len, rid;
int error;
- req = hn_rndis_alloc(hv, sizeof(*req));
+ req = hn_rndis_alloc(sizeof(*req));
if (!req) {
PMD_DRV_LOG(ERR, "no memory for RNDIS init");
return -ENXIO;