From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 1A8111B52B for ; Tue, 9 Oct 2018 16:14:26 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id 63-v6so2005507wra.11 for ; Tue, 09 Oct 2018 07:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=FU6Gj0qSca5tIND81t2pda/sqlidGjAFsS5AQX2BjpA=; b=Dcwbj3hBz4RJTjkc8Qk5nz3/H9P2CRMnRUR4AkUlIC3VBTavCWCPi9LmDjm822jiJN obYoTugLzEhR50OCBK8JysAWIqbusD0yj9R9bhMKNNtkv/LZlAc+m9KT+MkVxIcV1MBA 9cEqqFk0pPmdDEtSUsrkqAzpPx6wY0B6HdfYFj3lDuOoFV5YAB0GBiAiSZ7MucvvUflm XisgxqlC+f9NIJRM6s2quloNuMLq+UJNcWsd6UM6wI3jZ9nUmanZXeUYFMJymKdf6Kk+ WnxAOXI42RukoUcBM/LWtCTSEWnRqL1sRotvNUMtNwcOFRzNGU6/1iD8Rp2SHy850OVI uJEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=FU6Gj0qSca5tIND81t2pda/sqlidGjAFsS5AQX2BjpA=; b=oPE4FqvHNpQOINloucVQbj+ZHvpvInyVckxdnm4he9BbKVcWgIqHzY7Yk9MCgavpzF B/T3Wo4bsxvx+tE+Qj+r5Kf+/kZOWuhC11ay2mOQET3FQXIJbDAYFW+VldJrNGFnRifz n8cOtsa1FmfGQFfrbuR1FcwiIWYD/EnVmSgmNwKUX//vkm9nZJa1dzsqKCCcGL5FAFNv ZCJGIa/WueINnodPOjJkkCats69g7aHVIUqmUHmROaidtXSguL/JmsE87Llet3NH/L0I d7Vq0uxMnZVQxmgje9b6AF9X8QYCkgXHnc39/PLg/GpiitT2LIBPz3894syMfe/9gM4z gHcA== X-Gm-Message-State: ABuFfojgrHRzDZwYIQFASVo1HepeGbFZx5OFUsaj76FOfAS4UZzfv63Z /Yo6nheFTphupPDjCvn0ONTLwg== X-Google-Smtp-Source: ACcGV60ccNTp68LsgaJ4SgoAOqg7HB0TrWpCP9XUbVq8LeMoWC8v8j69uxvb1nPnirpHIxil195+Bw== X-Received: by 2002:adf:c88b:: with SMTP id k11-v6mr20153303wrh.6.1539094465434; Tue, 09 Oct 2018 07:14:25 -0700 (PDT) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id l195-v6sm15334971wmd.37.2018.10.09.07.14.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 07:14:24 -0700 (PDT) Date: Tue, 9 Oct 2018 16:14:06 +0200 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: Thomas Monjalon Cc: dev@dpdk.org, ophirmu@mellanox.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, olivier.matz@6wind.com, remy.horton@intel.com Message-ID: <20181009141406.rle54bpq6ictu3zd@bidouze.vm.6wind.com> References: <20181009021858.19216-1-thomas@monjalon.net> <20181009021858.19216-2-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181009021858.19216-2-thomas@monjalon.net> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH 1/4] kvargs: support list value 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: , X-List-Received-Date: Tue, 09 Oct 2018 14:14:26 -0000 Hi Thomas, On Tue, Oct 09, 2018 at 04:18:55AM +0200, Thomas Monjalon wrote: > If a value contains a comma, rte_kvargs_tokenize() will split here. > In order to support list syntax [a,b] as value, an extra parsing of > the square brackets is added. > Nice, I was actually planning to do this. I think it could be useful to also support () and {}, as well as recursive lists, but it is best to have a first version to support representor and go from this. > Signed-off-by: Thomas Monjalon > --- > lib/librte_kvargs/rte_kvargs.c | 10 ++++++++++ > test/test/test_kvargs.c | 17 +++++++++++++++++ > 2 files changed, 27 insertions(+) > -- Gaëtan Rivet 6WIND