Skip to content

Commit 8e2a242

Browse files
etantilovanguy11
authored andcommitted
idpf: set the payload size before calling the async handler
Set the payload size before forwarding the reply to the async handler. Without this, xn->reply_sz will be 0 and idpf_mac_filter_async_handler() will never get past the size check. Fixes: 34c21fa ("idpf: implement virtchnl transaction manager") Cc: stable@vger.kernel.org Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Reviewed-by: Li Li <boolli@google.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Tested-by: Samuel Salin <Samuel.salin@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent d086fae commit 8e2a242

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/net/ethernet/intel/idpf/idpf_virtchnl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ idpf_vc_xn_forward_reply(struct idpf_adapter *adapter,
615615
err = -ENXIO;
616616
goto out_unlock;
617617
case IDPF_VC_XN_ASYNC:
618+
/* Set reply_sz from the actual payload so that async_handler
619+
* can evaluate the response.
620+
*/
621+
xn->reply_sz = ctlq_msg->data_len;
618622
err = idpf_vc_xn_forward_async(adapter, xn, ctlq_msg);
619623
idpf_vc_xn_unlock(xn);
620624
return err;

0 commit comments

Comments
 (0)