From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F2D0A04A8; Sun, 16 Aug 2020 19:26:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C2C741C115; Sun, 16 Aug 2020 19:26:09 +0200 (CEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by dpdk.org (Postfix) with ESMTP id 69FFF1C0DB for ; Sun, 16 Aug 2020 19:26:08 +0200 (CEST) Received: by mail-pf1-f170.google.com with SMTP id x25so7039545pff.4 for ; Sun, 16 Aug 2020 10:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kH5KCKs7kX2QsQf6sY62mm8S3uMuwpm6iot5jnrl3cg=; b=UAOB8othKTjBVbFdLNHx+XjeKG8YuZRPGrLtf9TaYIp7BpgQmFZknh9MO6EguofM+C 8FukP4fWVoFlznE3wuCMScMVZLhheSwd9Bv3xtNk4894L1Nl5cVdvBIfYkf3wmm7lvNL niHYvEyXA+6eb3AsP5+GDPCNO0S9RD2FcUKzmeVyTqewKeHEVXDrvHkglSc4nZZ9NY1K pEUAnA8u5Zh/lPC0oOA0YB91nevz14da7UUYZiDgcrt8RXRJXhI5SqBFJ9rGGa7CKEdD pc3Qf4dmHQV7jHYUR6f9iOp4WVdwlQ6xn7mzWWQsFwVuQPLk/ASMSWoC8bu3EJohfPf/ ggEA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kH5KCKs7kX2QsQf6sY62mm8S3uMuwpm6iot5jnrl3cg=; b=J2rVubJOxE7xSvM70Wephdde19zKOq7VJIO6cKP7gzjFiB2DntteUW4AsK2OIiuvaT N/DK8i9c2Co0UjMkuBw2CQVLxHDSMxdM4g5ItSJpySlDyee/tSQXl6KUcsoZqViaCYCo 0qb3GK20phEPU9Hr0bxtbDgLX0HjSkIHVABttFj+jGww/fGgjIuJNgJbWdDkTynujLkF uOLxrK2GYpLIjfn4aa/I7uJe3MnF4RTxvPapo513bY+filPXbsg+P4Rw3i28aXOKHFwd c+MF6MAN/Y0JZo/2FGra3fsxv8lesbq0pW8xq33Nlpsd/G1Gzj/zcET87Lbxoxa6wBc6 gO6g== X-Gm-Message-State: AOAM533btSm8mA//WJj9bbXMG9CO5QUHzjWcUx7EgrTPTMXMfmx5h5kB BeTQziUrASDB++OmB8NrrrQtww== X-Google-Smtp-Source: ABdhPJwW7mI3R0TsJa5pVD1XpKPbjdR5kiw3ACy/9Tsf/tp3lLpAPVEizmgChhpddxLJXYfcgMBVpg== X-Received: by 2002:a65:620f:: with SMTP id d15mr7454275pgv.270.1597598766882; Sun, 16 Aug 2020 10:26:06 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id o10sm14018328pjo.55.2020.08.16.10.26.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Aug 2020 10:26:06 -0700 (PDT) Date: Sun, 16 Aug 2020 10:25:58 -0700 From: Stephen Hemminger To: Shiri Kuzin Cc: "dev@dpdk.org" , Slava Ovsiienko , NBU-Contact-Adrien Mazarguil , Raslan Darawsheh Message-ID: <20200816102558.722d5c3b@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC] ethdev: introduce GENEVE header extension item 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sun, 16 Aug 2020 10:15:03 +0000 Shiri Kuzin wrote: > The Geneve tunneling protocol is designed to allow > the user to specify some data context on the packet. > The header extension options is the mean intended > to present the user data. These ones are implemented > in TLV (Type-Length-Value) fashion, in order to > support these Geneve protocol feature we will > introduce the new item "rte_flow_item_geneve_option" > > The support for new item will be added to testpmd > and include values and masks for the fields: > - class > - type > - data length > - data itself > > The usage example: > > "flow create 0 ingress pattern ipv4 / udp / > geneve / geneve_opt class is 102 type is 80 > type mask ff data is 10002 data mask is > 7fffffff / end actions drop / end " > > New item will be added to testpmd to support > raw encap/decap action. > > Signed-off-by: Shiri Kuzin > --- > lib/librte_ethdev/rte_flow.h | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h > index da8bfa5..d04ee7c 100644 > --- a/lib/librte_ethdev/rte_flow.h > +++ b/lib/librte_ethdev/rte_flow.h > @@ -347,6 +347,13 @@ enum rte_flow_item_type { > RTE_FLOW_ITEM_TYPE_GENEVE, > > /** > + * Matches a GENEVE Variable Length Option. > + * > + * See struct rte_flow_item_geneve_option. > + */ > + RTE_FLOW_ITEM_TYPE_GENEVE_OPTION, > + > + /** Please don't break ABI by putting items in middle of enum. New items should go at the end. enum changes the val