[dpdk-dev] [PATCH v3] net/ice: initialize and update RSS based on user request

Zhang, Qi Z qi.z.zhang at intel.com
Tue Jun 23 11:40:07 CEST 2020



> -----Original Message-----
> From: Jiang, JunyuX <junyux.jiang at intel.com>
> Sent: Tuesday, June 23, 2020 4:33 PM
> To: dev at dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang at intel.com>; Yang, Qiming
> <qiming.yang at intel.com>; Su, Simei <simei.su at intel.com>; Jiang, JunyuX
> <junyux.jiang at intel.com>
> Subject: [PATCH v3] net/ice: initialize and update RSS based on user request
> 
> Initialize and update RSS configure based on user request
> (rte_eth_rss_conf) from dev_configure and .rss_hash_update ops.
> All previous default configure has been removed.
> 
> Signed-off-by: Junyu Jiang <junyux.jiang at intel.com>
> 
> ---
> v2->v3:
> change the commit log
> Separate ipv4 and ipv6
> Remove the call of ice_rem_vsi_rss_cfg()
> 
> v1->v2:
> remove gtpu and pppoe/pppod configuration from rss init
> ---
>  drivers/net/ice/ice_ethdev.c | 169 +++++++++++++++++++++--------------
>  drivers/net/ice/ice_ethdev.h |   2 +
>  2 files changed, 104 insertions(+), 67 deletions(-)
> 
...
> +	if (rss_conf->rss_hf == 0)
> +		return -EINVAL;

This looks not correct, user may only want to update hash key but without any RSS configure, just return success here.

> +
> +	/* RSS hash configuration */
> +	ice_rss_hash_set(pf, rss_conf->rss_hf);
> +
>  	return 0;
>  }
> 


More information about the dev mailing list