i40evf: increase max number of queues
Future devices will allow for more queue pairs, so allocate a netdev that can handle them. While we're at it, get rid of the separate MAX_TX/MAX_RX defines. Since we always get matched queue pairs, having these makes no sense. Change-ID: I0e3556cd9a962506e509eb7c0afa36b329e8cb51 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
6f24e5d599
commit
1255b7a12e
@ -97,8 +97,7 @@ struct i40e_vsi {
|
||||
#define I40E_TX_DESC(R, i) (&(((struct i40e_tx_desc *)((R)->desc))[i]))
|
||||
#define I40E_TX_CTXTDESC(R, i) \
|
||||
(&(((struct i40e_tx_context_desc *)((R)->desc))[i]))
|
||||
#define MAX_RX_QUEUES 8
|
||||
#define MAX_TX_QUEUES MAX_RX_QUEUES
|
||||
#define MAX_QUEUES 16
|
||||
|
||||
#define I40EVF_HKEY_ARRAY_SIZE ((I40E_VFQF_HKEY_MAX_INDEX + 1) * 4)
|
||||
#define I40EVF_HLUT_ARRAY_SIZE ((I40E_VFQF_HLUT_MAX_INDEX + 1) * 4)
|
||||
|
@ -2615,8 +2615,7 @@ static int i40evf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
|
||||
pci_set_master(pdev);
|
||||
|
||||
netdev = alloc_etherdev_mq(sizeof(struct i40evf_adapter),
|
||||
MAX_TX_QUEUES);
|
||||
netdev = alloc_etherdev_mq(sizeof(struct i40evf_adapter), MAX_QUEUES);
|
||||
if (!netdev) {
|
||||
err = -ENOMEM;
|
||||
goto err_alloc_etherdev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user