ionic: fix up dim accounting for tx and rx
authorShannon Nelson <snelson@pensando.io>
Fri, 23 Jul 2021 18:02:48 +0000 (11:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 20:57:41 +0000 (21:57 +0100)
commit76ed8a4a00b484dcccef819ef2618bcf8e46f560
tree9be98c3b922abc404e6cd9b2edfe3db61c7fbc8f
parenta6ff85e0a2d9d074a4b4c291ba9ec1e5b0aba22b
ionic: fix up dim accounting for tx and rx

We need to count the correct Tx and/or Rx packets for dynamic
interrupt moderation, depending on which we're processing on
the queue interrupt.

Fixes: 04a834592bf5 ("ionic: dynamic interrupt moderation")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c