diff options
author | Edwin Peer <[email protected]> | 2024-04-30 17:30:51 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-05-02 07:27:20 -0700 |
commit | a75fbb3aa47a62d76d8b07b49db9e2f0e08fbba7 (patch) | |
tree | ce483ea19cbf40e8e8f9214a2c3f30e39588cf17 /scripts/bpf_doc.py | |
parent | fc1fa5a07104a7caf151ace62ed59b617b811184 (diff) |
bnxt_en: share NQ ring sw_stats memory with subrings
On P5_PLUS chips and later, the NQ rings have subrings for RX and TX
completions respectively. These subrings are passed to the poll
function instead of the base NQ, but each ring carries its own
copy of the software ring statistics.
For stats to be conveniently accessible in __bnxt_poll_work(), the
statistics memory should either be shared between the NQ and its
subrings or the subrings need to be included in the ethtool stats
aggregation logic. This patch opts for the former, because it's more
efficient and less confusing having the software statistics for a
ring exist in a single place.
Before this patch, the counter will not be displayed if the "wrong"
cpr->sw_stats was used to increment a counter.
Link: https://lore.kernel.org/netdev/CACKFLikEhVAJA+osD7UjQNotdGte+fth7zOy7yDdLkTyFk9Pyw@mail.gmail.com/
Signed-off-by: Edwin Peer <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions