DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type
@ 2019-09-03  6:43 kirankumark
  2019-09-03  6:43 ` [dpdk-dev] [PATCH 2/2] net/octeontx2: enable GTPU for RSS hash index kirankumark
  2019-10-09  8:21 ` [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type Ferruh Yigit
  0 siblings, 2 replies; 3+ messages in thread
From: kirankumark @ 2019-09-03  6:43 UTC (permalink / raw)
  To: Thomas Monjalon, Ferruh Yigit, Andrew Rybchenko; +Cc: dev, Kiran Kumar K

From: Kiran Kumar K <kirankumark@marvell.com>

Adding support to enable GTPU eth flow type for RSS hash
index calculation.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
---
 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 8fa89bf76..774906d77 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.17.1


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

* [dpdk-dev] [PATCH 2/2] net/octeontx2: enable GTPU for RSS hash index
  2019-09-03  6:43 [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type kirankumark
@ 2019-09-03  6:43 ` kirankumark
  2019-10-09  8:21 ` [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type Ferruh Yigit
  1 sibling, 0 replies; 3+ messages in thread
From: kirankumark @ 2019-09-03  6:43 UTC (permalink / raw)
  To: Jerin Jacob, Nithin Dabilpuram, Kiran Kumar K; +Cc: dev

From: Kiran Kumar K <kirankumark@marvell.com>

Adding support to parse GTPU flag for RSS hash index calculation in
octeontx2.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
---
 drivers/net/octeontx2/otx2_rss.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/octeontx2/otx2_rss.c b/drivers/net/octeontx2/otx2_rss.c
index 5afa21490..bc7b64387 100644
--- a/drivers/net/octeontx2/otx2_rss.c
+++ b/drivers/net/octeontx2/otx2_rss.c
@@ -243,6 +243,9 @@ otx2_rss_ethdev_to_nix(struct otx2_eth_dev *dev, uint64_t ethdev_rss,
 	if (ethdev_rss & ETH_RSS_GENEVE)
 		flowkey_cfg |= FLOW_KEY_TYPE_GENEVE;
 
+	if (ethdev_rss & ETH_RSS_GTPU)
+		flowkey_cfg |= FLOW_KEY_TYPE_GTPU;
+
 	return flowkey_cfg;
 }
 
-- 
2.17.1


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

* Re: [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type
  2019-09-03  6:43 [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type kirankumark
  2019-09-03  6:43 ` [dpdk-dev] [PATCH 2/2] net/octeontx2: enable GTPU for RSS hash index kirankumark
@ 2019-10-09  8:21 ` Ferruh Yigit
  1 sibling, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2019-10-09  8:21 UTC (permalink / raw)
  To: kirankumark, Thomas Monjalon, Andrew Rybchenko; +Cc: dev

On 9/3/2019 7:43 AM, kirankumark@marvell.com wrote:
> From: Kiran Kumar K <kirankumark@marvell.com>
> 
> Adding support to enable GTPU eth flow type for RSS hash
> index calculation.
> 
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>

For series,
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Series applied to dpdk-next-net/master, thanks.

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

end of thread, other threads:[~2019-10-09  8:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03  6:43 [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type kirankumark
2019-09-03  6:43 ` [dpdk-dev] [PATCH 2/2] net/octeontx2: enable GTPU for RSS hash index kirankumark
2019-10-09  8:21 ` [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type Ferruh Yigit

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).