1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/hisilicon
Jijie Shao 882481b1c5 net: hns3: fix wrong bw weight of disabled tc issue
In dwrr mode, the default bandwidth weight of disabled tc is set to 0.
If the bandwidth weight is 0, the mode will change to sp.
Therefore, disabled tc default bandwidth weight need changed to 1,
and 0 is returned when query the bandwidth weight of disabled tc.
In addition, driver need stop configure bandwidth weight if tc is disabled.

Fixes: 848440544b ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-07-24 09:36:23 +01:00
..
hns driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
hns3 net: hns3: fix wrong bw weight of disabled tc issue 2023-07-24 09:36:23 +01:00
hip04_eth.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
hisi_femac.c net: hisilicon: Fix potential use-after-free in hisi_femac_rx() 2022-12-06 12:45:11 +01:00
hix5hd2_gmac.c net: hisilicon: Fix potential use-after-free in hix5hd2_rx() 2022-12-06 12:53:31 +01:00
hns_mdio.c net: hns: Separate C22 and C45 transactions 2023-01-17 19:34:08 -08:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00