i40evf: remove MAX_QUEUES and just use I40EVF_MAX_REQ_QUEUES
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 10 May 2018 12:59:46 +0000 (05:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 14 May 2018 14:05:16 +0000 (07:05 -0700)
commitaa4a0654035beaf8c64eddd0b254c299af548f4d
tree68d007a3f4ba5b2b951844eb9ef820a0a573eb66
parent3f76d01f3efeeafe2e9f3c74074d6eecff201466
i40evf: remove MAX_QUEUES and just use I40EVF_MAX_REQ_QUEUES

We don't really need to have separate definitions for MAX_QUEUES and
I40EVF_MAX_REQ_QUEUES, since we'll always be limited by how many queues
we request anyways. If we haven't enabled requesting the maximum number
of queues, there's no reason to have our call to alloc_etherdev_mq
actually pass the higher value, since we'd never enable those queues
anyways.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf.h
drivers/net/ethernet/intel/i40evf/i40evf_main.c