diff options
author | Jie Wang <wangjie125@huawei.com> | 2021-11-10 16:42:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-10 17:20:43 +0300 |
commit | 0b653a81a26d66ffe526a54c2177e24fb1400301 (patch) | |
tree | 210f1a08c7a70a1f7308cfc4655efc9e7dd26a9c /include/video/omap-panel-data.h | |
parent | beb27ca451a57a1c0e52b5268703f3c3173c1f8c (diff) | |
download | linux-0b653a81a26d66ffe526a54c2177e24fb1400301.tar.xz |
net: hns3: fix pfc packet number incorrect after querying pfc parameters
Currently, driver will send command to firmware to query pfc packet number
when user uses dcb tool to get pfc parameters. However, the periodic
service task will also periodically query and record MAC statistics,
including pfc packet number.
As the hardware registers of statistics is cleared after reading, it will
cause pfc packet number of MAC statistics are not correct after using dcb
tool to get pfc parameters.
To fix this problem, when user uses dcb tool to get pfc parameters, driver
updates MAC statistics firstly and then get pfc packet number from MAC
statistics.
Fixes: 64fd2300fcc1 ("net: hns3: add support for querying pfc puase packets statistic")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/video/omap-panel-data.h')
0 files changed, 0 insertions, 0 deletions