From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH v2 2/6] ethdev: add GTPC and GTPU items Date: Tue, 12 Sep 2017 12:46:48 +0200 Message-ID: <20170912104648.GN2481@6wind.com> References: <1503647430-93905-2-git-send-email-beilei.xing@intel.com> <1504783263-20575-1-git-send-email-beilei.xing@intel.com> <1504783263-20575-3-git-send-email-beilei.xing@intel.com> <20170907121949.GI4301@6wind.com> <94479800C636CB44BD422CB454846E013201B7A3@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Wu, Jingjing" , "Chilikin, Andrey" , "dev@dpdk.org" To: "Xing, Beilei" Return-path: Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by dpdk.org (Postfix) with ESMTP id 503E21B53 for ; Tue, 12 Sep 2017 12:46:59 +0200 (CEST) Received: by mail-wr0-f177.google.com with SMTP id a43so20551269wrc.0 for ; Tue, 12 Sep 2017 03:46:59 -0700 (PDT) Content-Disposition: inline In-Reply-To: <94479800C636CB44BD422CB454846E013201B7A3@SHSMSX101.ccr.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Beilei, On Tue, Sep 12, 2017 at 06:40:50AM +0000, Xing, Beilei wrote: > Hi Adrien, > > > -----Original Message----- > > From: Adrien Mazarguil [mailto:adrien.mazarguil@6wind.com] > > Sent: Thursday, September 7, 2017 8:20 PM > > To: Xing, Beilei > > Cc: Wu, Jingjing ; Chilikin, Andrey > > ; dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v2 2/6] ethdev: add GTPC and GTPU items > > > > Hi Beilei, > > > > I assume this patch supersedes [1]? > > > > [1] http://dpdk.org/ml/archives/dev/2017-August/073501.html > > > > Thanks for merging testpmd and the API change as a single patch, I still have > > a few comments, see below. > > > > (please add "flow API" somewhere in the title by the way) > > Thanks for all your comments. > Yes, http://dpdk.org/ml/archives/dev/2017-August/073501.html is superseded and did merging testpmd and API change. > I will update title in next version. All right, thanks. > > On Thu, Sep 07, 2017 at 07:20:59PM +0800, Beilei Xing wrote: > > > This patch adds GTPC and GTPU items to generic rte flow, and also > > > exposes the following item fields through the flow command: > > > > > > - GTPC TEID > > > - GTPU TEID > > > > > > Signed-off-by: Beilei Xing > > > > Won't there be a need to match nonspecific GTP traffic as well (both GTP-C > > and GTP-U a once), since they use the same structure? > > > > I'm not familiar with the protocol at all so I wonder if you should maybe leave > > the GTP item in addition to those two. > > > > Agree, I will leave the GTP item in next version. > > GTP-C and GTP-U use the same structure, the difference between them is UDP port, 2123 is for GTP-C, and 2152 is for GTP-U. > Add GTP-C and GTP -U item since I want to design a user-friendly CLI. > > For example, if user wants to add such flow: assign GTP-U packets with TEID 0x123456 to queue 14. > Then use can use following CLI: > flow create 0 ingress pattern eth / ipv4 / udp / gtpu teid is 0x123456 / end actions queue index 14 / end > instead of below CLI to distinguish GTP-C and GTP-U with UDP port: > flow create 0 ingress pattern eth / ipv4 / udp dst spec 2125 dst mask 0 / gtp teid is 0x123456 / end actions queue index 14 / end I agree with you from a usability standpoint it's much nicer. I have one question though, could one send GTP-C / GTP-U traffic using nondefault UDP ports and expect hardware to match it without explicitly specifying a port in the UDP item, that is, is there some property in GTP-C / GTP-U traffic outside the UDP port that would theoretically allow a host (even a stateful one) to tell them apart? If it really depends on the UDP port only, not specifying one will use hardware defaults regardless of the item (GTP / GTP-U / GTP-C). However if like VXLAN, this default value can be modified outside of rte_flow, most users will have to specify it regardless in order to get consistent results across various vendors/adapters. In any case I don't mind three items. GTP encompasses both GTP-U and GTP-C (possibly two different UDP ports at once), while GTP-U and GTP-C match exactly one. You only have to describe this properly in the documentation. Thanks. -- Adrien Mazarguil 6WIND