[2/2] net/octeontx2: enable GTPU for RSS hash index
diff mbox series

Message ID 20190903064305.14895-2-kirankumark@marvell.com
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series
  • [1/2] ethdev: enable support for GTPU eth flow type
Related show

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Kiran Kumar Kokkilagadda Sept. 3, 2019, 6:43 a.m. UTC
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(+)

Patch
diff mbox series

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;
 }