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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Aug 2021 10:46:43 +0000 (12:46 +0200)
commit60decbe01d7d711d4626a855213350ea02bfd41c
treef5d622f5166f3eafe4b35f238d3b460ada6c62fc
parenta7c85a516cd0e7dc73912311f8b1ab40b6b53cad
ionic: fix up dim accounting for tx and rx

[ Upstream commit 76ed8a4a00b484dcccef819ef2618bcf8e46f560 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c