diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2020-07-06 17:55:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-06 23:00:43 +0300 |
commit | 0fe665d42fd0844dbfb60f15b09d71fd0c409b00 (patch) | |
tree | 0ae2ccec957bdb403c53d77b991af4f34a32de75 /drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | |
parent | bc0c3ae40a03d47709b5d9d86cc9ed0681691e03 (diff) | |
download | linux-0fe665d42fd0844dbfb60f15b09d71fd0c409b00.tar.xz |
dpaa2-eth: fix draining of S/G cache
On link down, the draining of the S/G cache should be done on all
_possible_ CPUs not just the ones that are online in that moment.
Fix this by changing the iterator.
Fixes: d70446ee1f40 ("dpaa2-eth: send a scatter-gather FD instead of realloc-ing")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index bc1f1e0117b6..d0cc1dc49aaa 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -1261,7 +1261,7 @@ static void dpaa2_eth_sgt_cache_drain(struct dpaa2_eth_priv *priv) u16 count; int k, i; - for_each_online_cpu(k) { + for_each_possible_cpu(k) { sgt_cache = per_cpu_ptr(priv->sgt_cache, k); count = sgt_cache->count; |