[RESEND 2/2] app/testpmd: support set RSS hash algorithm
Ferruh Yigit
ferruh.yigit at amd.com
Thu Nov 30 12:38:52 CET 2023
On 11/30/2023 10:44 AM, Jie Hai wrote:
> +static void
> +cmd_config_rss_hash_algo_parsed(void *parsed_result,
> + __rte_unused struct cmdline *cl,
> + __rte_unused void *data)
> +{
> + struct cmd_config_rss_hash_algo *res = parsed_result;
> + uint8_t rss_key[RSS_HASH_KEY_LENGTH];
> + struct rte_eth_rss_conf rss_conf;
> + int ret;
> +
> + rss_conf.rss_key_len = RSS_HASH_KEY_LENGTH;
> + rss_conf.rss_key = rss_key;
> + ret = rte_eth_dev_rss_hash_conf_get(res->port_id, &rss_conf);
> + if (ret != 0) {
> + fprintf(stderr, "failed to get port %u RSS confinguration\n",
>
s/confinguration/configuration/
More information about the dev
mailing list