ionic: pull per-q stats work out of queue loops
authorShannon Nelson <snelson@pensando.io>
Tue, 30 Mar 2021 19:52:10 +0000 (12:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:37:13 +0000 (17:37 -0700)
commitaa620993b1e58e19a556bc3a7f0e15ac08bf2e46
treea652e6a5e5c225fd1cdfb3d00ca9112a39bdab52
parentb2b9a8d7ed134ae72e5ef8d0003d054af8e5e2bf
ionic: pull per-q stats work out of queue loops

Abstract out the per-queue data collection work into separate
functions from the per-queue loops in the stats reporting,
similar to what Alex did for the data label strings in
commit acebe5b6107c ("ionic: Update driver to use ethtool_sprintf")

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_stats.c