i40e/i40evf: save aq writeback for future inspection
Add the ability to save the AdminQ write back descriptor if a caller supplies a buffer for it to be saved into. Change-ID: I3d1301d26360b39a2d66dc8569e851f54133a3af Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
79afe839ab
commit
87db27a9e2
@ -889,6 +889,10 @@ i40e_status i40e_asq_send_command(struct i40e_hw *hw,
|
|||||||
"AQTX: desc and buffer writeback:\n");
|
"AQTX: desc and buffer writeback:\n");
|
||||||
i40e_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff, buff_size);
|
i40e_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff, buff_size);
|
||||||
|
|
||||||
|
/* save writeback aq if requested */
|
||||||
|
if (details->wb_desc)
|
||||||
|
*details->wb_desc = *desc_on_ring;
|
||||||
|
|
||||||
/* update the error if time out occurred */
|
/* update the error if time out occurred */
|
||||||
if ((!cmd_completed) &&
|
if ((!cmd_completed) &&
|
||||||
(!details->async && !details->postpone)) {
|
(!details->async && !details->postpone)) {
|
||||||
|
@ -69,6 +69,7 @@ struct i40e_asq_cmd_details {
|
|||||||
u16 flags_dis;
|
u16 flags_dis;
|
||||||
bool async;
|
bool async;
|
||||||
bool postpone;
|
bool postpone;
|
||||||
|
struct i40e_aq_desc *wb_desc;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define I40E_ADMINQ_DETAILS(R, i) \
|
#define I40E_ADMINQ_DETAILS(R, i) \
|
||||||
|
@ -830,6 +830,10 @@ i40e_status i40evf_asq_send_command(struct i40e_hw *hw,
|
|||||||
i40evf_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff,
|
i40evf_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff,
|
||||||
buff_size);
|
buff_size);
|
||||||
|
|
||||||
|
/* save writeback aq if requested */
|
||||||
|
if (details->wb_desc)
|
||||||
|
*details->wb_desc = *desc_on_ring;
|
||||||
|
|
||||||
/* update the error if time out occurred */
|
/* update the error if time out occurred */
|
||||||
if ((!cmd_completed) &&
|
if ((!cmd_completed) &&
|
||||||
(!details->async && !details->postpone)) {
|
(!details->async && !details->postpone)) {
|
||||||
|
@ -69,6 +69,7 @@ struct i40e_asq_cmd_details {
|
|||||||
u16 flags_dis;
|
u16 flags_dis;
|
||||||
bool async;
|
bool async;
|
||||||
bool postpone;
|
bool postpone;
|
||||||
|
struct i40e_aq_desc *wb_desc;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define I40E_ADMINQ_DETAILS(R, i) \
|
#define I40E_ADMINQ_DETAILS(R, i) \
|
||||||
|
Loading…
Reference in New Issue
Block a user