net: mvpp2: fix pkt coalescing int-threshold configuration
authorStefan Chulski <stefanc@marvell.com>
Wed, 23 Dec 2020 18:35:21 +0000 (20:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:18:12 +0000 (20:18 +0100)
commitcdb02a7a9e8d51c41d56be0099c5925536ceecf9
tree95afcf2ee4a66ec3a568c783ca1521de283673d1
parent9b350728118e5ab9152a3a03e130118a0202ea94
net: mvpp2: fix pkt coalescing int-threshold configuration

[ Upstream commit 4f374d2c43a9e5e773f1dee56db63bd6b8a36276 ]

The packet coalescing interrupt threshold has separated registers
for different aggregated/cpu (sw-thread). The required value should
be loaded for every thread but not only for 1 current cpu.

Fixes: 213f428f5056 ("net: mvpp2: add support for TX interrupts and RX queue distribution modes")
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Link: https://lore.kernel.org/r/1608748521-11033-1-git-send-email-stefanc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c