Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99214944 authored by Akeem G Abodunrin's avatar Akeem G Abodunrin Committed by Jeff Kirsher
Browse files

ice: Don't return error for disabling LAN Tx queue that does exist



Since Tx rings are being managed by FW/NVM, Tx rings might have not been
set up or driver had already wiped them off - In that case, call to
disable LAN Tx queue is being returned as not in existence. This patch
makes sure we don't return unnecessary error for such scenario.

Signed-off-by: default avatarAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent a1e99685
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2148,6 +2148,9 @@ ice_vsi_stop_tx_rings(struct ice_vsi *vsi, enum ice_disq_rst_src rst_src,
		if (status == ICE_ERR_RESET_ONGOING) {
			dev_dbg(&pf->pdev->dev,
				"Reset in progress. LAN Tx queues already disabled\n");
		} else if (status == ICE_ERR_DOES_NOT_EXIST) {
			dev_dbg(&pf->pdev->dev,
				"LAN Tx queues does not exist, nothing to disabled\n");
		} else if (status) {
			dev_err(&pf->pdev->dev,
				"Failed to disable LAN Tx queues, error: %d\n",