linux/drivers/net/ethernet/intel
Mitch Williams 1001dc3739 i40e: don't overload fields
Overloading the msg_size field in the arq_event_info struct is just a
bad idea. It leads to repeated bugs when the structure is used in a
loop, since the input value (buffer size) is overwritten by the output
value (actual message length).

Fix this by splitting the field into two and renaming to indicate the
actual function of each field.

Since the arq_event struct has now changed, we need to change the drivers
to support this. Note that we no longer need to initialize the buffer size
each time we go through a loop as this value is no longer destroyed by
arq processing.

In the process, we also fix a bug in i40evf_verify_api_ver where the
buffer size was not correctly reinitialized each time through the loop.

Change-ID: Ic7f9633cdd6f871f93e698dfb095e29c696f5581
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: Ashish Shah <ashish.n.shah@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-11-20 14:56:42 -08:00
..
e1000 e1000: unset IFF_UNICAST_FLT on WMware 82545EM 2014-10-30 04:47:39 -07:00
e1000e e100e: use netdev_rss_key_fill() helper 2014-11-16 15:59:12 -05:00
fm10k fm10k: use netdev_rss_key_fill() helper 2014-11-16 15:59:12 -05:00
i40e i40e: don't overload fields 2014-11-20 14:56:42 -08:00
i40evf i40e: don't overload fields 2014-11-20 14:56:42 -08:00
igb igb: use netdev_rss_key_fill() helper 2014-11-16 15:59:12 -05:00
igbvf PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ixgb PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ixgbe ixgbe: use netdev_rss_key_fill() helper 2014-11-16 15:59:12 -05:00
ixgbevf ixgbevf: add netpoll support 2014-11-20 14:48:24 -08:00
e100.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
Kconfig fm10k: Add CONFIG_FM10K_VXLAN configuration option 2014-10-16 02:03:39 -07:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00