net/octeontx2: enable GTPU for RSS hash index
authorKiran Kumar K <kirankumark@marvell.com>
Tue, 3 Sep 2019 06:43:05 +0000 (12:13 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:08 +0000 (16:43 +0200)
Adding support to parse GTPU flag for RSS hash index calculation in
octeontx2.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/octeontx2/otx2_rss.c

index 5afa214..bc7b643 100644 (file)
@@ -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;
 }