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 0736B432B4; Mon, 6 Nov 2023 04:19:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA334402CF; Mon, 6 Nov 2023 04:19:10 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id C1049402B5 for ; Mon, 6 Nov 2023 04:19:09 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6c33ab26dddso2663348b3a.0 for ; Sun, 05 Nov 2023 19:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1699240749; x=1699845549; 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=BkMU+754cH02/4GDX0vj95Ow8W/AXuu1QomMrNK9j2s=; b=DGl5Gu3WpnvVNFm6SbkxSggSQhTdREafXSOrb1y2Kf1REloeeOMHx6Cd+C32I4QfUv apXm2vMLsKiYHbLrJjLhAwIDbrazLL02MQuoCUOhELYR7nDPePzJ3O052zt4B1Tjn9k/ Fuepk3Zjcgc/CnUh6ZO1X6UnzARprGzyORV8lzsbPqIU0ILoI4sFKEPxVZTwPurgYuu9 QawgtWp7kw4Q3gjOrARXOEkZ80FgYXYLUoldUpVjHSHUhBpY0JNNXTN6XY27e9MXcG07 E2TwbQkjJ+lJmfTnPS6jzeSSSGSFAD2m300ooHtZoSDiaAaZmVhfCxMozNokXfJfRc6a 1qUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699240749; x=1699845549; 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=BkMU+754cH02/4GDX0vj95Ow8W/AXuu1QomMrNK9j2s=; b=KP+me+3Yk6u2CZeYo2elsKGWf4pZ8VoP/AqEBMuQQ6reWAHkWGhDOlmwcu1fAYA8lT 0yk61kb5OzhnQyA8I3jyE9URYIG7adEzCUZuebMpir70/ME8wdutC9BLja5btIWVJNop A6v2T+7hVtsAUTz5stoEVd8JmACTahYr4AGplQonYLzAhfi8urdT+HIty8JRQZfPM91P 95mObkouAb2VFY4jPTacP+GyMCu9n0O0mt7I4FJtm+iqp0PkCsQh59ETvkefaeTIFKHJ 30Sf4Bf2Y8TnkHc9VYoa/v1BOYsNBywyKLbyO22RF6fa1VSY0f6nWp0ivaKchl0mFbSE CuDQ== X-Gm-Message-State: AOJu0YyENc1vZTL7LaD8Ojbn59JyAnhRwQMe3qLWHDAPcNSnjfVpEkMT ffcsjQSNAAXHLFXr9J5YzqJEnwYYQEo/VAcznGE= X-Google-Smtp-Source: AGHT+IExVRJBOarRVlNF3gHCwA/hgESOYdkj8UQQk1+Sm67tStKVVQQE3p1P31tQABek1o+UPzAbSA== X-Received: by 2002:a05:6a00:248e:b0:6c3:60c2:8415 with SMTP id c14-20020a056a00248e00b006c360c28415mr7263273pfv.30.1699240748957; Sun, 05 Nov 2023 19:19:08 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id e17-20020aa78c51000000b006c107a9e8f0sm4636709pfd.128.2023.11.05.19.19.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 19:19:08 -0800 (PST) Date: Sun, 5 Nov 2023 19:19:06 -0800 From: Stephen Hemminger To: Chengwen Feng Cc: , , Chaoyong He , Subject: Re: [PATCH v4 4/5] common/nfp: use new API to parse kvargs Message-ID: <20231105191906.144e7015@hermes.local> In-Reply-To: <20231105054539.22303-5-fengchengwen@huawei.com> References: <20230314124813.39521-1-fengchengwen@huawei.com> <20231105054539.22303-1-fengchengwen@huawei.com> <20231105054539.22303-5-fengchengwen@huawei.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 Sun, 5 Nov 2023 05:45:38 +0000 Chengwen Feng wrote: > if (rte_kvargs_count(kvargs, RTE_DEVARGS_KEY_CLASS) != 0) { > - rte_kvargs_process(kvargs, RTE_DEVARGS_KEY_CLASS, > - nfp_kvarg_dev_class_handler, &dev_class); > + rte_kvargs_process_opt(kvargs, RTE_DEVARGS_KEY_CLASS, > + nfp_kvarg_dev_class_handler, &dev_class); > } Since kvargs_process() already does a scan, the kvargs_count() cause an extra pass.