DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC] ethdev: add GRE optional fields to flow API
@ 2019-05-14  7:18 Xiaoyu Min
  2019-05-14  7:18 ` Xiaoyu Min
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Xiaoyu Min @ 2019-05-14  7:18 UTC (permalink / raw)
  To: Adrien Mazarguil, Thomas Monjalon, Ferruh Yigit, Andrew Rybchenko
  Cc: dev, jackmin

Add GRE's checksum, key, and sequence field to the
struct rte_flow_item_gre in order to match.

Signed-off-by: Xiaoyu Min <jackmin@mellanox.com>
---
 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-05-15 13:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14  7:18 [dpdk-dev] [RFC] ethdev: add GRE optional fields to flow API Xiaoyu Min
2019-05-14  7:18 ` Xiaoyu Min
2019-05-14  7:34 ` Andrew Rybchenko
2019-05-14  7:34   ` Andrew Rybchenko
2019-05-14  9:00   ` Adrien Mazarguil
2019-05-14  9:00     ` Adrien Mazarguil
2019-05-15  8:55     ` Jack Min
2019-05-15  8:55       ` Jack Min
2019-05-14 15:25 ` Stephen Hemminger
2019-05-14 15:25   ` Stephen Hemminger
2019-05-15  8:56   ` Jack Min
2019-05-15  8:56     ` Jack Min
2019-05-15 13:24 ` [dpdk-dev] [RFC v2] ethdev: add GRE key field " Xiaoyu Min
2019-05-15 13:24   ` Xiaoyu Min

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).