From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 880014595A; Wed, 11 Sep 2024 05:57:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F7CB40E1D; Wed, 11 Sep 2024 05:57:06 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id B0F1B402DE for ; Wed, 11 Sep 2024 05:57:04 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-205659dc63aso62683095ad.1 for ; Tue, 10 Sep 2024 20:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726027024; x=1726631824; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=vDB10KTf7Q6ScTuuhv2aFVmXm5SV9e/uO11haimtsiE=; b=h8/b/MVi7u/HzNB+posGdsdJnBUccjAxTEhOIseinDnO2B/VzvkUA8ohka/RkdTWLJ V8Qm3rcT2SYTnWJZq8vZJGH0ftt2KcHiiZgWu/sI51o642oCSM74cfyf9G9Ye4+yLqIt acGdAgsI89DDaz9AjKCUsV4Htaj59VWnskn3Fv7gNyR8xkrBfElV1mYMBhr9OAvpxcJ0 pFNF/Jxn0TbJasf6hEal781+SDudtyWxsHjZhtaeS9xoZ3URTwSorbThR/6YTuoCN0vt MQDfR89FdgmaOl4Dg7v/5Z6YEKiKmnH+nWor4UOKv0q/xSuJ3JdfVPpvq/cOJ2FVA4TS QrsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726027024; x=1726631824; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vDB10KTf7Q6ScTuuhv2aFVmXm5SV9e/uO11haimtsiE=; b=NF7z5ZETWQicLuLuVFZdvNTWWLn5nhCa7NWEL6RNu69XtcXq/+og7pJe22gLw05irA Jo7IpbRfEAqzYnN8ZarPSjjkSLEVu1XVGuqKuxS2kcDqyNY15qiPulN+8nubhe3uEWeO 6tCK8OFeQ8eoXHGCXtztPla0VklOy8FLx/re08Hdesx99LMvXTqX0fP9QvkLkL1/uFKv ZdqBx7Rzlw/UWxbpPfOV9fnUMeRF3NxsbFiIp7UySljfgtyFOVXr9wdcX7vgF+Om7t/g fv1d1pDLya48M25hJLGg8tz3KX89cjxqnHydPHV6N+JvGNCxyf33WpYeqm21LNbcckhV bxOw== X-Gm-Message-State: AOJu0YzZxlFk1CKY2JWbN540YsCGdMFXC7cKUms86fAxxemGyYeDXrlK DTzYT3MJ7lWv0gCt8tsXfYlKrzRUvrJE7+Kr+VhU26pDkjs8fkCirTA6jrFtdRo= X-Google-Smtp-Source: AGHT+IF+l0LErcB1sQ3sggjwOX1X9xmOxe/IDX+V3KPaapUkvFfNzH99/HkjFbqrmH2vNzAhqOSghg== X-Received: by 2002:a17:903:1112:b0:1fc:57b7:995c with SMTP id d9443c01a7336-2074c5e5194mr44115155ad.7.1726027023667; Tue, 10 Sep 2024 20:57:03 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f4be4bsm55228775ad.299.2024.09.10.20.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 20:57:03 -0700 (PDT) Date: Tue, 10 Sep 2024 20:48:49 -0700 From: Stephen Hemminger To: "WanRenyong" Cc: , , Subject: Re: [PATCH v2 05/19] net/xsc: add ioctl command interface Message-ID: <20240910204842.6e965a48@hermes.local> In-Reply-To: <20240911020740.3950704-6-wanry@yunsilicon.com> References: <20240911020740.3950704-6-wanry@yunsilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 11 Sep 2024 10:07:26 +0800 "WanRenyong" wrote: > + hdr = rte_zmalloc(NULL, alloc_len, RTE_CACHE_LINE_SIZE); > + if (hdr == NULL) { > + PMD_DRV_LOG(ERR, "Failed to allocate xsc ioctl cmd memory"); > + return -ENOMEM; > + } > + This is local to function, use malloc() not rte_zmalloc(). It doesn't need to come from hugepages.