linux/drivers/net/ethernet/hisilicon
Guangbin Huang 8c1671e0d1 net: hns3: fix get wrong pfc_en when query PFC configuration
Currently, when query PFC configuration by dcbtool, driver will return
PFC enable status based on TC. As all priorities are mapped to TC0 by
default, if TC0 is enabled, then all priorities mapped to TC0 will be
shown as enabled status when query PFC setting, even though some
priorities have never been set.

for example:
$ dcb pfc show dev eth0
pfc-cap 4 macsec-bypass off delay 0
prio-pfc 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
$ dcb pfc set dev eth0 prio-pfc 0:on 1:on 2:on 3:on
$ dcb pfc show dev eth0
pfc-cap 4 macsec-bypass off delay 0
prio-pfc 0:on 1:on 2:on 3:on 4:on 5:on 6:on 7:on

To fix this problem, just returns user's PFC config parameter saved in
driver.

Fixes: cacde272dd ("net: hns3: Add hclge_dcb module for the support of DCB feature")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-08-26 07:24:17 -07:00
..
hns net: hns: Fix kernel-doc 2021-05-25 15:26:47 -07:00
hns3 net: hns3: fix get wrong pfc_en when query PFC configuration 2021-08-26 07:24:17 -07:00
hip04_eth.c net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition 2021-07-19 10:02:12 -07:00
hisi_femac.c of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
hix5hd2_gmac.c of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
hns_mdio.c net: hns: remove redundant variable initialization 2021-03-24 12:07:21 -07:00
Kconfig net: hns3: add support for PTP 2021-06-11 12:43:16 -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