[dpdk-dev] [PATCH v2 1/3] lib/ethdev: add ethdev op to get hash index

Ferruh Yigit ferruh.yigit at intel.com
Wed Oct 16 19:48:52 CEST 2019


On 10/15/2019 10:52 AM, vattunuru at marvell.com wrote:
> From: Vamsi Attunuru <vattunuru at marvell.com>
> 
> Some networking devices may use custom algos for computing
> hash indices and spread the packets accordingly.
> 
> Patch adds an eth_dev op to get the hash index correspond
> to the given hash value received in the initial packet on
> the given port.
> 
> Some of the applications compute hash index from the hash
> value received in the initial packet and than configure
> the rxq to lcore mapping to make sure the mapped lcore/rxq
> would receive the upcoming traffic that has similar hash.
> Such applications may use these API to get the hash index
> used by the PMD for spreading those traffic.
> 
> Signed-off-by: Vamsi Attunuru <vattunuru at marvell.com>

<...>

> @@ -364,6 +364,10 @@ typedef int (*rss_hash_conf_get_t)(struct rte_eth_dev *dev,
>  				   struct rte_eth_rss_conf *rss_conf);
>  /**< @internal Get current RSS hash configuration of an Ethernet device */
>  
> +typedef int (*rss_hash_index_get_t)(struct rte_eth_dev *dev,
> +				    uint32_t hash, uint32_t *hash_idx);
> +/**< @internal Get RSS hash id of given hash value */

s/hash id/hash index/ ?




More information about the dev mailing list