Skip to content
Commit ae3d17a7 authored by Michael Chan's avatar Michael Chan Committed by Paul Gortmaker
Browse files

bnxt_en: Fix Priority Bytes and Packets counters in ethtool -S.

commit a24ec322 upstream.

There is an indexing bug in determining these ethtool priority
counters.  Instead of using the queue ID to index, we need to
normalize by modulo 10 to get the index.  This index is then used
to obtain the proper CoS queue counter.  Rename bp->pri2cos to
bp->pri2cos_idx to make this more clear.

Fixes: e37fed79

 ("bnxt_en: Add ethtool -S priority counters.")
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 9be990f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment