[PATCH] net/hns3: fix non-zero weight for disabled TC

Ferruh Yigit ferruh.yigit at amd.com
Fri Jul 7 13:29:44 CEST 2023


On 7/7/2023 11:40 AM, Dongdong Liu wrote:
> From: Huisong Li <lihuisong at huawei.com>
> 
> hns3 PF driver enables one TC, allocates to 100% weight for this
> TC and 0% for other disabled TC by default. But driver modifies
> the weight to 1% for disabled TC and then set to hardware to make
> all TC work in DWRR mode. As a result, the total percent of all TC
> is more than 100%. Actually, this operation is also redundant,
> because these disabled TC will never be used. So this patch sets
> the weight of all TC based on user's configuration.
> 
> Fixes: 62e3ccc2b94c ("net/hns3: support flow control")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Huisong Li <lihuisong at huawei.com>
> Signed-off-by: Dongdong Liu <liudongdong3 at huawei.com>
>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list