From: Dapeng Yu Date: Tue, 9 Nov 2021 07:49:47 +0000 (+0800) Subject: net/ice: fix adminq handling on DCF passive reset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9143a09dedfe5dcb559cba6ce1c0c06a41776ec7;p=dpdk.git net/ice: fix adminq handling on DCF passive reset DCF tries to handle AdminQ when DCF is reset by PF, however the invalid data may be returned, and error log may be output in this situation. This patch stops handling AdminQ when a passive reset is detected to avoid this situation. Fixes: 7564d5509611 ("net/ice: add DCF hardware initialization") Cc: stable@dpdk.org Signed-off-by: Dapeng Yu Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c index 366ff0a907..cca1d7bf46 100644 --- a/drivers/net/ice/ice_dcf.c +++ b/drivers/net/ice/ice_dcf.c @@ -166,7 +166,7 @@ ice_dcf_handle_virtchnl_msg(struct ice_dcf_hw *hw) info.buf_len = ICE_DCF_AQ_BUF_SZ; info.msg_buf = hw->arq_buf; - while (pending) { + while (pending && !hw->resetting) { ret = iavf_clean_arq_element(&hw->avf, &info, &pending); if (ret != IAVF_SUCCESS) break;