From patchwork Tue May 14 07:18:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoyu Min X-Patchwork-Id: 53392 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org 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 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" 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. */