From 3266266db429391276bf859e9d080ec9bc1c3260 Mon Sep 17 00:00:00 2001 From: Kiran Kumar K Date: Tue, 3 Sep 2019 12:13:04 +0530 Subject: [PATCH] ethdev: add GTPU flow type Adding support to enable GTPU eth flow type for RSS hash index calculation. Signed-off-by: Kiran Kumar K Reviewed-by: Ferruh Yigit --- lib/librte_ethdev/rte_ethdev.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index d937fb4293..c26abe23aa 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -479,7 +479,8 @@ struct rte_eth_rss_conf { #define RTE_ETH_FLOW_GENEVE 20 /**< GENEVE protocol based flow */ #define RTE_ETH_FLOW_NVGRE 21 /**< NVGRE protocol based flow */ #define RTE_ETH_FLOW_VXLAN_GPE 22 /**< VXLAN-GPE protocol based flow */ -#define RTE_ETH_FLOW_MAX 23 +#define RTE_ETH_FLOW_GTPU 23 /**< GTPU protocol based flow */ +#define RTE_ETH_FLOW_MAX 24 /* * The RSS offload types are defined based on flow types. @@ -507,6 +508,7 @@ struct rte_eth_rss_conf { #define ETH_RSS_VXLAN (1ULL << RTE_ETH_FLOW_VXLAN) #define ETH_RSS_GENEVE (1ULL << RTE_ETH_FLOW_GENEVE) #define ETH_RSS_NVGRE (1ULL << RTE_ETH_FLOW_NVGRE) +#define ETH_RSS_GTPU (1ULL << RTE_ETH_FLOW_GTPU) #define ETH_RSS_IP ( \ ETH_RSS_IPV4 | \ -- 2.20.1