staging: fsl-dpaa2/eth: Update number of netdev queues
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 6 Jun 2017 15:00:41 +0000 (10:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 10:04:38 +0000 (12:04 +0200)
commitbb5b42c0d8d2352a266b19abb29db7c566a4a707
treebb0804d364cb88f45f00f1403f2d14700b9f4af7
parent6ab00868464fb1acaed7276b47d92c64c4d8623f
staging: fsl-dpaa2/eth: Update number of netdev queues

Currently, the netdevice is allocated with a default number of Rx/Tx
queues equal to CONFIG_NR_CPUS, meaning the maximum number of cores
supported by the current kernel. The actual number of queues is
reflected by the DPNI object attribute, so update the netdevice
configuration based on that.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c