linux/drivers/net/ethernet/intel
Jacob Keller 333e2f2cea i40e: fix i40e_add_queue_stats data pointer update
This function accidentally failed to update the data pointer, which
caused the reported stats to be incorrect. Additionally, statistics
which follow queue stats in the output would potentially read non-zeroed
garbage data from the ethtool buffer.

This occurred because the data double pointer was not dereferenced
before incrementing the size.

Additionally, make sure this issue is more visible by adding a WARN_ONCE
to the i40e_get_ethtool_stats function. This warning will trigger
whenever the data pointer is not at the expected address, similar to the
check that we make in the i40e_get_stat_strings() function.

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>
2018-08-07 12:20:52 -07:00
..
e1000 treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
e1000e treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fm10k treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
i40e i40e: fix i40e_add_queue_stats data pointer update 2018-08-07 12:20:52 -07:00
i40evf i40e: Add AQ command for rearrange NVM structure 2018-08-07 12:20:45 -07:00
ice ice: Update NVM AQ command functions 2018-05-17 09:14:09 -07:00
igb igb: Use dma_wmb() instead of wmb() before doorbell writes 2018-07-26 09:04:05 -07:00
igbvf net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ixgb treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ixgbe ixgbe: Refactor queue disable logic to take completion time into account 2018-07-26 09:04:06 -07:00
ixgbevf xdp: don't make drivers report attachment mode 2018-07-13 20:26:35 +02:00
e100.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
Kconfig docs: Fix more broken references 2018-06-15 18:11:26 -03:00
Makefile ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00