dpaa_eth: use only online CPU portals
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 27 May 2019 12:24:05 +0000 (15:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2019 18:19:55 +0000 (11:19 -0700)
commit7aae703f8096d21e34ce5f34f16715587bc30902
tree57450c747a85ea74bac6a8362304325c049b034a
parentd484e06e25ebb937d841dac02ac1fe76ec7d4ddd
dpaa_eth: use only online CPU portals

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>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c