From: Rosen Xu Date: Thu, 16 Aug 2018 01:14:16 +0000 (+0800) Subject: ethdev: expand queue threshold size of RED parameters X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9378d24bef598345ee0b6d80bc854f5e44adeb02;p=dpdk.git 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 --- diff --git a/lib/librte_ethdev/rte_tm.h b/lib/librte_ethdev/rte_tm.h index 955f02ff10..646ef38806 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