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: 7564d55096
("net/ice: add DCF hardware initialization")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
1a3709c1f0
commit
9143a09ded
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user