[dpdk-dev] [PATCH] lib/librte_ethdev: expand queue threshold size of RED parameters

Dumitrescu, Cristian cristian.dumitrescu at intel.com
Mon Oct 8 17:59:49 CEST 2018



> -----Original Message-----
> From: Xu, Rosen
> Sent: Thursday, August 16, 2018 2:14 AM
> To: dev at dpdk.org
> Cc: Dumitrescu, Cristian <cristian.dumitrescu at intel.com>; Lu, Wenzhuo
> <wenzhuo.lu at intel.com>; Singh, Jasvinder <jasvinder.singh at intel.com>;
> jerin.jacob at caviumnetworks.com; Xu, Rosen <rosen.xu at intel.com>; Yigit,
> Ferruh <ferruh.yigit at intel.com>
> Subject: [PATCH] lib/librte_ethdev: expand queue threshold size of RED
> parameters
> 
> There's very commonly that more than 4G DDR memory in NIC for HQoS,
> so right now the queue threshold size of RED needs to expand to
> uint64_t. This patch fixes it.
> 
> Signed-off-by: Rosen Xu <rosen.xu at intel.com>
> ---
>  lib/librte_ethdev/rte_tm.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/librte_ethdev/rte_tm.h b/lib/librte_ethdev/rte_tm.h
> index 955f02f..646ef38 100644
> --- a/lib/librte_ethdev/rte_tm.h
> +++ b/lib/librte_ethdev/rte_tm.h
> @@ -831,10 +831,10 @@ enum rte_tm_cman_mode {
>   */
>  struct rte_tm_red_params {
>  	/** Minimum queue threshold */
> -	uint32_t min_th;
> +	uint64_t min_th;
> 
>  	/** Maximum queue threshold */
> -	uint32_t max_th;
> +	uint64_t max_th;
> 
>  	/** Inverse of packet marking probability maximum value (maxp),
> i.e.
>  	 * maxp_inv = 1 / maxp
> --
> 1.8.3.1

Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>

Applied to next-qos tree, thanks!


More information about the dev mailing list