]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2019 18:19:55 +0000 (11:19 -0700)
commit2b3b7f98d16e5d384fe0d8c05cc8b0cd0295e7a5
tree57450c747a85ea74bac6a8362304325c049b034a
parent8250a86c16a621459a1f6c5421d661ec959b6f39
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