]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: remove debug-statistics support
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 4 Mar 2016 23:37:48 +0000 (15:37 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 Apr 2016 06:04:57 +0000 (23:04 -0700)
commit087327832b0cff153875c6dd7f2bc3c054cbf19a
tree41117f9b8c025e7f4c2837acaf7a5276084ed08e
parent057a5812b2d0dd4a3d805fb743a66ce6390669e5
fm10k: remove debug-statistics support

This change fixes an (ab)use of the ethtool stats API, which could
result in corrupt memory or misleading stat output. The ethtool stats
API is not robust enough to handle varying number of statistics due to
how it requests the size and allocates memory. Remove the poorly conceived
support originally added for extra debug statistics. In the future,
a new stats API may open up the ability to display these statistics.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c