From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82C3BA04F1; Mon, 13 Jan 2020 20:13:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E5671D179; Mon, 13 Jan 2020 20:12:56 +0100 (CET) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 045231D169 for ; Mon, 13 Jan 2020 20:12:50 +0100 (CET) Received: by mail-pg1-f193.google.com with SMTP id b9so5134091pgk.12 for ; Mon, 13 Jan 2020 11:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RkpUU9ijLBQMNvO5b11asFkGAsU7WCAkniS9qZ2NjWw=; b=N/I91NrOJGdy3EItQ04xLg/iT/XgxsZ81t43Cd6wdo+LD6Dw+KJQ0Cog+XYyvLu6OI NjY678mRPNFgT5heVsVgungFdCCAvRHyvKyjSLyUNOHNzqXsn3gKXVvuUqvDlMyHI8I4 Vkm/TtIrzKPNp6hNAC2E6VseYUjtmi65NrPdsiNNIlKN/NW66UTCgr8mkxf/0pN3VsG1 M2MLF9nC5CLhIaT0XbHd/Bd3nYE8tIP3Ux5LF3SLBAyoQYriWIjolHJSbzr2GDVpCuc5 oPrYo2J4xASXcNQvapXcNlybfdTvXYNYCrJ8tiNiesSfuvVjSks9yMsfyDlX404eTAsp hTRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RkpUU9ijLBQMNvO5b11asFkGAsU7WCAkniS9qZ2NjWw=; b=VewbTRBIOxWZcWc2cpUS0rSY2xzNPR7mA0qj+IqcTycwaOoAb5lWoUWdmwYsaqFIGF J8wu8faaPmjfOWj2qfhpId669pwlIF7lX1JusXk6FTh0xDFcCc4g8jOfCKHSilGqrL6a VpO7Dz4CN3uL+bMQ3vf7ueiYWWU6OQV6qWLmEsDfiJoUMGZO1U7FU5Tnx9SqdKI4ITZo 0KHVL1Uw8BEoG0UvrUgeK5dk5yqFm6AfjSrWllXPIsuXe8fn66jEM7vRVXywLLVdZM9g qK/qUlxq0lgSn81/eJMDALIYC6B5Z0JO4yD0dPMZjnulxtJhFrCBs4n91qPfOWp81uk3 Dd0Q== X-Gm-Message-State: APjAAAUtOKHUH1vauUrfpt5PdwvZG9vvwXS138kB9hwri8fDBSsdQq7s tUgXTpllNW4j0w7Uxz9bcyPw3/3HCiY= X-Google-Smtp-Source: APXvYqyXhnRLpuDpK5oog2B90JOVhmMdGdFi4Z9ULOlHJQoJlX/TSISc5sKHS2I5BGkNF39W66pvLA== X-Received: by 2002:a63:f64a:: with SMTP id u10mr21776241pgj.16.1578942769671; Mon, 13 Jan 2020 11:12:49 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f127sm15173723pfa.112.2020.01.13.11.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 11:12:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 13 Jan 2020 11:12:39 -0800 Message-Id: <20200113191239.22750-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200113191239.22750-1-stephen@networkplumber.org> References: <20200113191239.22750-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 2/2] net/netvsc: eliminate numa specific allocation for control messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The control messages do not need NUMA specific allocation. Numa node is not set anyway in most kernels anyway. Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_rndis.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/netvsc/hn_rndis.c b/drivers/net/netvsc/hn_rndis.c index 2b4714042e04..7947ca2331e2 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; -- 2.20.1