From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) by dpdk.org (Postfix) with ESMTP id 3604D7CDE for ; Fri, 22 Sep 2017 15:39:31 +0200 (CEST) Received: by mail-wr0-f178.google.com with SMTP id k20so972121wre.4 for ; Fri, 22 Sep 2017 06:39:31 -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:in-reply-to; bh=SA2d7F+zEYmkCpf1uN6ARwsM1yImbv562gVKd9d1bGE=; b=HIN1+ANyq885S1qrMiVhUnaZM9UGBb5Uy6n94IjZFuZzT+6SPOtahiqkBm0iuvYfCW AR4oMuG9CROD+pjuFgtR+0XLtg1LABcZpWL/VqdMdtLmEsawSvL1669h893oslja1iYw BHwVJjvo49Y7fAUcB5GTkhMQ0OuOk8yfjBPfMyOLv9njx70hau8gso6DZwc0DR0vIxX3 vivFddWid/odJQkCEkXkwIxQlVRVvNDkhe2hMZ49Az3KXh0jjNrGS2oeBaqbTRJPKOb1 PHfG5531+zdMwiXYwxsfj5yJb+Gj+0AYa/Kc14vZLc8ND6r6tHQK67NVGvRMJ/VvVcJn 511g== 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:in-reply-to; bh=SA2d7F+zEYmkCpf1uN6ARwsM1yImbv562gVKd9d1bGE=; b=swYLdORKCdCT15t8ZLXictGHsQYS6KUTtziXHKUUo7jeyLz5FkltCspnBqLQFpP5py /6PHNB38SKSBY4flRmvVp57LariivuifGjupWlQ7LObCaUZuE9vVxDH1fIQFyUp9gdqu 2daR3IqbAiscGwMaXIowOl3dMy3upJ8kSk2V8kosRge7LSUobSp/3lAu2IF0tnsEhnXv XQsVMvk0p3TNIKdgj0xhXXvtfCYP6KNZpomewFaHzgnrZNfJa6A3E37sFufQfEToejeM QceawM7dyeXAZgu+ATJc+f+Cw2We7Zxqzxu0XHVvR4oU0bhfR+hLnk2INFILaJmUHtkd f00g== X-Gm-Message-State: AHPjjUil8vLCVAZQa5rwEPi+VYJRZlMfZg/BmXImgp0mkGH73gU9ptSl 7JU4KdY5i0t4QRHH+OVryt8bHA== X-Google-Smtp-Source: AOwi7QCC9mEgIw67QRnNxYnylkXKSxCHqO9zYJvu6VTbtuTdcsWrZp6Dv5yIhYwl8GANRmHE4z+qgg== X-Received: by 10.223.196.11 with SMTP id v11mr4544592wrf.21.1506087570956; Fri, 22 Sep 2017 06:39:30 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 193sm85152wmh.47.2017.09.22.06.39.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 06:39:29 -0700 (PDT) Date: Fri, 22 Sep 2017 15:39:19 +0200 From: Adrien Mazarguil To: Beilei Xing Cc: jingjing.wu@intel.com, andrey.chilikin@intel.com, dev@dpdk.org Message-ID: <20170922133919.GD11375@6wind.com> References: <1504783263-20575-1-git-send-email-beilei.xing@intel.com> <1506119714-53437-1-git-send-email-beilei.xing@intel.com> <1506119714-53437-5-git-send-email-beilei.xing@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1506119714-53437-5-git-send-email-beilei.xing@intel.com> Subject: Re: [dpdk-dev] [PATCH v3 4/8] ethdev: add GTP items to support flow API 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: Fri, 22 Sep 2017 13:39:31 -0000 On Sat, Sep 23, 2017 at 06:35:10AM +0800, Beilei Xing wrote: > This patch adds GTP, GTPC and GTPU items for > generic flow API, and also exposes item fields > through the flow command. > > Signed-off-by: Beilei Xing > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c > +static const enum index item_gtp[] = { > + ITEM_GTP_TEID, > + ITEM_NEXT, > + ZERO, > +}; > + > +static const enum index item_gtpc[] = { > + ITEM_GTP_TEID, > + ITEM_NEXT, > + ZERO, > +}; > + > +static const enum index item_gtpu[] = { > + ITEM_GTP_TEID, > + ITEM_NEXT, > + ZERO, > +}; Only item_gtp[] needs to be defined. GTPC and GTPU should use the same array. Apart from that: Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND