linux_dsm_epyc7002/drivers/net/ethernet/intel/i40evf
Shannon Nelson f905dd62be i40e/i40evf: add max buf len to aq debug print helper
There is at least one case in the Firmware API where the response to a
command changes the buffer size field in the AQ descriptor to a larger
number than what the request's buffer size started as.  This is in addition
to setting an error flag and is in order to tell the requester how much
larger a buffer is required for the answer.  We need to be sure not to
use that number when dumping the contents of the data buffer because it
can send us into the weeds and generate an invalid pointer exception.

This patch adds a max buffer size parameter to the print helper to be
sure the code knows when to stop.

Change-ID: Ib84f7ed72140fe9d600086d8f2002fc5d8753092
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-08-27 00:40:14 -07:00
..
i40e_adminq_cmd.h i40e/i40evf: AdminQ API update for new FW 2014-06-11 08:47:35 -07:00
i40e_adminq.c i40e/i40evf: add max buf len to aq debug print helper 2014-08-27 00:40:14 -07:00
i40e_adminq.h i40e/i40evf: Add nvmupdate support 2014-07-24 03:32:40 -07:00
i40e_alloc.h i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00
i40e_common.c i40e/i40evf: add max buf len to aq debug print helper 2014-08-27 00:40:14 -07:00
i40e_hmc.h i40e/i40evf: Force a shifted '1' to be unsigned 2014-07-02 19:02:19 -07:00
i40e_lan_hmc.h i40e/i40evf: Big endian fixes for handling HMC 2014-06-26 04:44:57 -07:00
i40e_osdep.h i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00
i40e_prototype.h i40e/i40evf: add max buf len to aq debug print helper 2014-08-27 00:40:14 -07:00
i40e_register.h i40e/i40evf: i40e_register.h update 2014-06-19 20:22:02 -07:00
i40e_status.h i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00
i40e_txrx.c i40e/i40evf: fix extension header csum logic 2014-07-24 03:47:28 -07:00
i40e_txrx.h i40e/i40evf: Do not free the dummy packet buffer synchronously 2014-07-02 19:02:18 -07:00
i40e_type.h i40e/i40evf: Add nvmupdate support 2014-07-24 03:32:40 -07:00
i40e_virtchnl.h i40e/i40evf: Clean up a few things 2014-06-08 02:01:26 -07:00
i40evf_ethtool.c i40evf: fix scan warning on sprintf 2014-08-02 19:41:14 -07:00
i40evf_main.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
i40evf_virtchnl.c i40evf: set flags before sending message 2014-06-30 23:46:11 -07:00
i40evf.h i40evf: fix crash when changing ring sizes 2014-06-05 02:13:01 -07:00
Makefile i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00