fixup! ice: add support for sideband messages
Subsystems (2)
PATCH 1/1 fixup! ice: add support for sideband messages
The check in ice_clean_sbq_subtask for whether to exit early accidentally checked for if the sbq was supported. This check should be negated, so that we only try to clean the sideband queue on devices which support it. Otherwise without this fix, on devices that do not support the sideband queue, the following message may get spammed into the log:
ice 0000:af:00.0: Sideband Receive Queue event error ICE_ERR_AQ_EMPTY
Additionally, on devices which do support the sideband queue, the receive portion will never be properly cleaned.
---
Tony, if you wouldn't mind squashing this into the noted patch in the description before we send this to netdev.
drivers/net/ethernet/intel/ice/ice_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_main.c +2 -1
@@ -1430,7 +1430,8 @@ static void ice_clean_sbq_subtask(struct ice_pf *pf) {struct ice_hw *hw = &pf->hw; -if (ice_is_sbq_supported (hw)) { +/* Nothing to do here if sideband queue is not supported */ +if (!ice_is_sbq_supported (hw)) {clear_bit (ICE_SIDEBANDQ_EVENT_PENDING , pf->state);return ; }
base-commit: 80e0251735737d53ea5dc85e2cf5596df721ddc5
Signature · 1 line
2.31.1.331.gb0c09ab8796f