From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 55D444CA7 for ; Tue, 14 May 2019 09:18:37 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from jackmin@mellanox.com) with ESMTPS (AES256-SHA encrypted); 14 May 2019 10:18:33 +0300 Received: from mellanox.com (vnc23.mtl.labs.mlnx [10.7.2.23]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x4E7IX6N007019; Tue, 14 May 2019 10:18:33 +0300 From: Xiaoyu Min To: Adrien Mazarguil , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Cc: dev@dpdk.org, jackmin@mellanox.com Date: Tue, 14 May 2019 10:18:29 +0300 Message-Id: <20190514071829.5251-1-jackmin@mellanox.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC] ethdev: add GRE optional fields to 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: Tue, 14 May 2019 07:18:37 -0000 Add GRE's checksum, key, and sequence field to the struct rte_flow_item_gre in order to match. Signed-off-by: Xiaoyu Min --- lib/librte_ethdev/rte_flow.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index 63f84fca65..fb04af3268 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -847,6 +847,10 @@ struct rte_flow_item_gre { */ rte_be16_t c_rsvd0_ver; rte_be16_t protocol; /**< Protocol type. */ + rte_be16_t checksum; /**< chksum for the header and payload, optional.*/ + rte_be16_t rsvd1; /**< present when C bit is set, optional. */ + rte_be32_t key; /**< application specific key value, optional. */ + rte_be32_t sequence; /**< sequence num for the GRE packet, optional. */ }; /** Default mask for RTE_FLOW_ITEM_TYPE_GRE. */ -- 2.21.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C4FFDA00E6 for ; Tue, 14 May 2019 09:18:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A3B444CC3; Tue, 14 May 2019 09:18:38 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 55D444CA7 for ; Tue, 14 May 2019 09:18:37 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from jackmin@mellanox.com) with ESMTPS (AES256-SHA encrypted); 14 May 2019 10:18:33 +0300 Received: from mellanox.com (vnc23.mtl.labs.mlnx [10.7.2.23]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x4E7IX6N007019; Tue, 14 May 2019 10:18:33 +0300 From: Xiaoyu Min To: Adrien Mazarguil , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Cc: dev@dpdk.org, jackmin@mellanox.com Date: Tue, 14 May 2019 10:18:29 +0300 Message-Id: <20190514071829.5251-1-jackmin@mellanox.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC] ethdev: add GRE optional fields to 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190514071829.lCKppQ4WNk8v2Ybb-5sbdVpdHvvfRRMB8IZZcNiFVlw@z> Add GRE's checksum, key, and sequence field to the struct rte_flow_item_gre in order to match. Signed-off-by: Xiaoyu Min --- lib/librte_ethdev/rte_flow.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index 63f84fca65..fb04af3268 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -847,6 +847,10 @@ struct rte_flow_item_gre { */ rte_be16_t c_rsvd0_ver; rte_be16_t protocol; /**< Protocol type. */ + rte_be16_t checksum; /**< chksum for the header and payload, optional.*/ + rte_be16_t rsvd1; /**< present when C bit is set, optional. */ + rte_be32_t key; /**< application specific key value, optional. */ + rte_be32_t sequence; /**< sequence num for the GRE packet, optional. */ }; /** Default mask for RTE_FLOW_ITEM_TYPE_GRE. */ -- 2.21.0