From: Stephen Hemminger Date: Mon, 13 Jan 2020 19:12:39 +0000 (-0800) Subject: net/netvsc: eliminate NUMA specific allocation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7214dda6136131dc5e53308fb29a982f6a88af5d;p=dpdk.git net/netvsc: eliminate NUMA specific allocation The control messages do not need NUMA specific allocation. Numa node is not set anyway in most kernels anyway. Signed-off-by: Stephen Hemminger --- diff --git a/drivers/net/netvsc/hn_rndis.c b/drivers/net/netvsc/hn_rndis.c index 2b4714042e..7947ca2331 100644 --- a/drivers/net/netvsc/hn_rndis.c +++ b/drivers/net/netvsc/hn_rndis.c @@ -60,10 +60,9 @@ hn_rndis_rid(struct hn_data *hv) 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 @@ -442,7 +441,7 @@ hn_rndis_query(struct hn_data *hv, uint32_t oid, uint32_t rid; reqlen = sizeof(*req) + idlen; - req = hn_rndis_alloc(hv, reqlen); + req = hn_rndis_alloc(reqlen); if (req == NULL) return -ENOMEM; @@ -517,7 +516,7 @@ hn_rndis_halt(struct hn_data *hv) { struct rndis_halt_req *halt; - halt = hn_rndis_alloc(hv, sizeof(*halt)); + halt = hn_rndis_alloc(sizeof(*halt)); if (halt == NULL) return -ENOMEM; @@ -1004,7 +1003,7 @@ static int hn_rndis_init(struct hn_data *hv) 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;