From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by dpdk.org (Postfix) with ESMTP id 4F8C41B1C1 for ; Fri, 29 Sep 2017 10:15:01 +0200 (CEST) Received: by mail-oi0-f51.google.com with SMTP id l74so916769oih.1 for ; Fri, 29 Sep 2017 01:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rfjwUXKheMvZ2SR7+FlbCE+G5l3XNjAdDmENRvpyRvY=; b=uEtm7FRYWvfO5tgj+LQ+yWKEQDLAKULSJHhjdEbmwF4B3VQ7cGrUZ56QKVvpPHvxXj CQ8sgNof8QltvxMjdFaisVk5tCy2CEJZJNGwjGAu/CLaIpeXW7kKjQ4YJUJ1AkXDLa6n Dhb2d+p7/0VOIE25v2YhY04uSLVwEGo0FlgOPM4h1GN9yPXWnrHmqBeGd4wniojcsYSW i1ahdvxMJB5WqGvbcGBIN5caPaB5NvV0b4cvpLToGDkEiIDpi9Rq5i3zd3JF1zxAQ45S +UPytp0myD4MvpY3pV/iOD3Gf/iOfmHslqdN67GT9RcSlt8m1EzjYORDNt0GWpNyseSL ncfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rfjwUXKheMvZ2SR7+FlbCE+G5l3XNjAdDmENRvpyRvY=; b=r2krB21CLUsnSuMHLE8+gOvXQUA0JSf1V7LWffNp9Tu5MzhxuN+PIHSgHjnJX83lrS ymoB+XlXJi9z2fuhKBKCsj+0EAe7xLruG7f5luZbBl/nKorekxUrvdxlcgNiLp1RTHgn YtswzVw+Bf/lY+Rmy9qvXPJgS3M+gBn9TRfQrqoOWBoNB8AKkpZVLUwP2OPoJmDtweBd yEQB6OW8PaaOcAmjQjaeXXRiKUpMghXcTR0e7vpljpR4BiZ5lnNaTKbqFUAKwEb8Bqmv htWyvpkey53cDPG8fdU/gQKsLdYDEdkIAk765CfTLiP58cAy5i6vaUNfk7qgGEAONBEJ +gdA== X-Gm-Message-State: AMCzsaX4On1Bx3j0Jn4l4rXO5vX0qM2LZQq3M9m4dM5PTWrayZ3xoVhk I4exSWWO9xuR+MUcB388lCLDNKbeyXLw1+wx04s= X-Google-Smtp-Source: AOwi7QDTpyRPOplyWsmlduqF3AExHQwhTK3GFcKVpLkm5oRwGco4qQOQbsEVjhZtk7yQFYEEX9CTJhkOuxyfjJIPHxQ= X-Received: by 10.157.83.141 with SMTP id w13mr2210014otg.344.1506672901124; Fri, 29 Sep 2017 01:15:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.83.193 with HTTP; Fri, 29 Sep 2017 01:15:00 -0700 (PDT) In-Reply-To: <1506662342-18966-2-git-send-email-beilei.xing@intel.com> References: <1506565054-67690-1-git-send-email-beilei.xing@intel.com> <1506662342-18966-1-git-send-email-beilei.xing@intel.com> <1506662342-18966-2-git-send-email-beilei.xing@intel.com> From: Sean Harte Date: Fri, 29 Sep 2017 09:15:00 +0100 Message-ID: To: Beilei Xing Cc: jingjing.wu@intel.com, andrey.chilikin@intel.com, dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v6 1/8] mbuf: support GTP in software packet type parser 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, 29 Sep 2017 08:15:02 -0000 On 29 September 2017 at 06:18, Beilei Xing wrote: > Add support of GTP-C and GTP-U tunnels in rte_net_get_ptype(). > > Signed-off-by: Beilei Xing > Acked-by: Olivier Matz > --- > lib/librte_mbuf/rte_mbuf_ptype.c | 2 ++ > lib/librte_mbuf/rte_mbuf_ptype.h | 24 ++++++++++++++++++++++++ > 2 files changed, 26 insertions(+) > /** > + * GTP-C (GPRS Tunnelling Protocol) control tunneling packet type. > + * Packet format: > + * <'ether type'=0x0800 > + * | 'version'=4, 'protocol'=17 > + * | 'destination port'=2123> > + * or, > + * <'ether type'=0x86DD > + * | 'version'=6, 'next header'=17 > + * | 'destination port'=2123> > + */ > +#define RTE_PTYPE_TUNNEL_GTPC 0x00007000 This isn't a good description of GTP-C. GTP-C messages have a source port of 2123, or a destination port of 2123. > +/** > + * GTP-U (GPRS Tunnelling Protocol) user data tunneling packet type. > + * Packet format: > + * <'ether type'=0x0800 > + * | 'version'=4, 'protocol'=17 > + * | 'destination port'=2152> > + * or, > + * <'ether type'=0x86DD > + * | 'version'=6, 'next header'=17 > + * | 'destination port'=2152> > + */ > +#define RTE_PTYPE_TUNNEL_GTPU 0x00008000 > +/** > * Mask of tunneling packet types. > */ > #define RTE_PTYPE_TUNNEL_MASK 0x0000f000 > -- > 2.5.5 >