Commit 8217f93
bnxt_en: Save ring error counters across reset
[ Upstream commit 4c70dbe ]
Currently, the ring counters are stored in the per ring datastructure.
During reset, all the rings are freed together with the associated
datastructures. As a result, all the ring error counters will be reset
to zero.
Add logic to keep track of the total error counts of all the rings
and save them before reset (including ifdown). The next patch will
display these total ring error counters under ethtool -S.
Link: https://lore.kernel.org/netdev/CACKFLimD-bKmJ1tGZOLYRjWzEwxkri-Mw7iFme1x2Dr0twdCeg@mail.gmail.com/
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20230817231911.165035-5-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: bd6781c ("bnxt_en: Fix wrong return value check in bnxt_close_nic()")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 53cacb8 commit 8217f93
2 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10708 | 10708 | | |
10709 | 10709 | | |
10710 | 10710 | | |
10711 | | - | |
| 10711 | + | |
10712 | 10712 | | |
| 10713 | + | |
| 10714 | + | |
10713 | 10715 | | |
10714 | 10716 | | |
10715 | 10717 | | |
| |||
10958 | 10960 | | |
10959 | 10961 | | |
10960 | 10962 | | |
| 10963 | + | |
| 10964 | + | |
| 10965 | + | |
| 10966 | + | |
| 10967 | + | |
| 10968 | + | |
| 10969 | + | |
| 10970 | + | |
| 10971 | + | |
| 10972 | + | |
| 10973 | + | |
| 10974 | + | |
| 10975 | + | |
| 10976 | + | |
| 10977 | + | |
| 10978 | + | |
| 10979 | + | |
| 10980 | + | |
| 10981 | + | |
| 10982 | + | |
| 10983 | + | |
| 10984 | + | |
| 10985 | + | |
| 10986 | + | |
| 10987 | + | |
| 10988 | + | |
| 10989 | + | |
| 10990 | + | |
10961 | 10991 | | |
10962 | 10992 | | |
10963 | 10993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
953 | 964 | | |
954 | 965 | | |
955 | 966 | | |
| |||
2007 | 2018 | | |
2008 | 2019 | | |
2009 | 2020 | | |
| 2021 | + | |
| 2022 | + | |
2010 | 2023 | | |
2011 | 2024 | | |
2012 | 2025 | | |
| |||
2331 | 2344 | | |
2332 | 2345 | | |
2333 | 2346 | | |
| 2347 | + | |
| 2348 | + | |
2334 | 2349 | | |
2335 | 2350 | | |
2336 | 2351 | | |
| |||
0 commit comments