i40e: remove hardcode of stats struct size in ethtool
authorShannon Nelson <shannon.nelson@intel.com>
Fri, 4 Apr 2014 04:43:12 +0000 (04:43 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 21 May 2014 10:28:49 +0000 (03:28 -0700)
commit31cd840e6c373c562e1755804c32824ce2c0370c
treeefe8ae60ca6e233072a45f3e17ec9f89e8407778
parent32f5f54a22d5c888c8fcef91259bfc62f9185671
i40e: remove hardcode of stats struct size in ethtool

Base the queue stats length on the queue stats struct rather than
assuming it is 2 fields.  This is in prep for adding data fields
which are configuration dependent.

Change-ID: I937f471f389d2e0f8cec733960c5d9a06b14f3ec
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c