summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40evf/i40evf.h
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2015-10-26 19:44:39 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-12-01 22:55:49 -0800
commit7d96ba1a8b7c36d1f4a04dc40e031b6f8c677496 (patch)
tree820c15b7ff197c7d7e08276c13412fa0d63efb9c /drivers/net/ethernet/intel/i40evf/i40evf.h
parente743072fd16e6e772d5b5e4aef38873946f9a3e0 (diff)
downloadlinux-7d96ba1a8b7c36d1f4a04dc40e031b6f8c677496.tar.gz
linux-7d96ba1a8b7c36d1f4a04dc40e031b6f8c677496.tar.bz2
linux-7d96ba1a8b7c36d1f4a04dc40e031b6f8c677496.zip
i40evf: allocate queue vectors dynamically
Change the queue_vector array from a statically-sized member of the adapter structure to a dynamically-allocated and -sized array. This reduces the size of the adapter structure, and allows us to support any number of queue vectors in the future without changing the code. Change-ID: I08dc622cb2f2ad01e832e51c1ad9b86524730693 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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40evf.h')
-rw-r--r--drivers/net/ethernet/intel/i40evf/i40evf.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf.h b/drivers/net/ethernet/intel/i40evf/i40evf.h
index 090c6048f0df..bd185add7948 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf.h
+++ b/drivers/net/ethernet/intel/i40evf/i40evf.h
@@ -145,9 +145,6 @@ struct i40e_q_vector {
#define OTHER_VECTOR 1
#define NONQ_VECS (OTHER_VECTOR)
-#define MAX_MSIX_Q_VECTORS 4
-#define MAX_MSIX_COUNT 5
-
#define MIN_MSIX_Q_VECTORS 1
#define MIN_MSIX_COUNT (MIN_MSIX_Q_VECTORS + NONQ_VECS)
@@ -193,7 +190,7 @@ struct i40evf_adapter {
struct work_struct reset_task;
struct work_struct adminq_task;
struct delayed_work init_task;
- struct i40e_q_vector *q_vector[MAX_MSIX_Q_VECTORS];
+ struct i40e_q_vector *q_vectors;
struct list_head vlan_filter_list;
char misc_vector_name[IFNAMSIZ + 9];
int num_active_queues;