summaryrefslogtreecommitdiff
path: root/lib/test_vmalloc.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2020-03-22 16:40:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-01 11:01:40 +0200
commit2ac37a531115cffa178fd8674130524950f39707 (patch)
tree6deac77862dc85a8509f7028136cca270e701650 /lib/test_vmalloc.c
parent53d0bf064c9ff4263128e1f0459a0e74c087f43f (diff)
bnxt_en: Fix Priority Bytes and Packets counters in ethtool -S.
[ Upstream commit a24ec3220f369aa0b94c863b6b310685a727151c ] 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: e37fed790335 ("bnxt_en: Add ethtool -S priority counters.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions