linux/drivers/staging/fsl-dpaa2
Ioana Radulescu 009749d731 staging: fsl-dpaa2/eth: Change max number of Tx queues
We use DPAA2_ETH_MAX_TX_QUEUES to dimension the array holding
information on Tx queues. At most, we can have one queue per cpu.

Until now we used the NR_CPUS macro to set the upper limit on number
of Tx queues. However, the platforms that the DPAA2 Ethernet driver
supports have at most 16 cores, whereas NR_CPUS is Kconfigurable and
can be much higher.

Avoid allocating memory we'll never use, by setting
DPAA2_ETH_MAX_TX_QUEUES to 16. Same for DPAA2_ETH_MAX_DPCONS.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-23 16:01:57 +01:00
..
ethernet staging: fsl-dpaa2/eth: Change max number of Tx queues 2018-03-23 16:01:57 +01:00
ethsw bus: fsl-mc: change mc_command in fsl_mc_command 2018-03-23 15:52:48 +01:00
Kconfig staging: fsl-dpaa2/ethsw: Add APIs for DPSW object 2018-03-14 17:36:09 +01:00
Makefile staging: fsl-dpaa2/ethsw: Add APIs for DPSW object 2018-03-14 17:36:09 +01:00