]> git.itanic.dy.fi Git - linux-stable/commit
dpaa_eth: use only online CPU portals
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 27 May 2019 12:24:05 +0000 (15:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:09:12 +0000 (08:09 +0200)
commitb2d4f385490e30729a295f7fe3be101adf7ec4fc
treea9569bf7eb79f7bc14ce234b22a308f55331ef00
parent71af3faddd52334c8adc5b8dbd67e9bb6fe95e74
dpaa_eth: use only online CPU portals

[ Upstream commit 7aae703f8096d21e34ce5f34f16715587bc30902 ]

Make sure only the portals for the online CPUs are used.
Without this change, there are issues when someone boots with
maxcpus=n, with n < actual number of cores available as frames
either received or corresponding to the transmit confirmation
path would be offered for dequeue to the offline CPU portals,
getting lost.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c