net: thunderx: Set queue count based on number of CPUs
commit3a397ebe154b385e5e3d0c7fee478ccef58742fc
authorSunil Goutham <sgoutham@cavium.com>
Fri, 12 Aug 2016 11:21:27 +0000 (12 16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:30 +0000 (13 11:59 -0700)
treeb3c99da83f0663ae5ffd9fc2fd1b1783bd525e39
parent0025d93ebb9b4f7ad7807d22fe65852f447309a1
net: thunderx: Set queue count based on number of CPUs

81xx has only 4 CPUs, so it doesn't make sense to initialize
entire Qset i.e 8 queues by default. Made changes to queue
initialization to init queues equal to number of CPUs or
8 queues whichever is lesser. Also this will be applicable to
VMs with VNIC VF attached and having less VCPUs

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.h