Skip to contentSkip to conversation

i40e: Fix reporting incorrect error codes

PATCH New Amritha Nambiar 3 participants 3 messages Nov 17, 2017 – Nov 27, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: Fix reporting incorrect error codes

Adding cloud filters could fail for a number of reasons, unsupported filter fields for example, which fails during validation of fields itself. This will not result in admin command errors and converting the admin queue status to posix error code using i40e_aq_rc_to_posix would result in incorrect error values. If the failure was due to AQ error itself, reporting that correclty is handled in the inner function.

---
 drivers/net/ethernet/intel/i40e/i40e_main.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +0 -1
index 4d0f81d..565ce12 100644
@@ -7470,7 +7470,6 @@ static int i40e_configure_clsflower(struct i40e_vsi *vsi,
 		dev_err(&pf->pdev->dev,
 			"Failed to add cloud filter, err %s\n",
 			i40e_stat_str(&pf->hw, err));
-		err = i40e_aq_rc_to_posix(err, pf->hw.aq.asq_last_status);
 		goto err;
 	}
 
#1 lore raw

PATCH 1/1 i40e: Fix reporting incorrect error codes

Quoted 7 lines · Amritha Nambiar

Adding cloud filters could fail for a number of reasons, unsupported filter fields for example, which fails during validation of fields itself. This will not result in admin command errors and converting the admin queue status to posix error code using i40e_aq_rc_to_posix would result in incorrect error values. If the failure was due to AQ error itself, reporting that correclty is handled in the inner function.

Let's spell correctly correctly, shall we? :-)
sln

Quoted 24 lines
---
  drivers/net/ethernet/intel/i40e/i40e_main.c |    1 -
  1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +0 -1
index 4d0f81d..565ce12 100644
@@ -7470,7 +7470,6 @@ static int i40e_configure_clsflower(struct i40e_vsi *vsi,
  		dev_err(&pf->pdev->dev,
  			"Failed to add cloud filter, err %s\n",
  			i40e_stat_str(&pf->hw, err));
-		err = i40e_aq_rc_to_posix(err, pf->hw.aq.asq_last_status);
  		goto err;
  	}
 

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#2 lore raw

PATCH 1/1 i40e: Fix reporting incorrect error codes

In reply to Amritha Nambiar
Quoted 16 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Amritha Nambiar
Sent: Friday, November 17, 2017 3:36 PM
To: intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T <[email protected]>
Subject: [Intel-wired-lan] [jkirsher/next-queue PATCH] i40e: Fix reporting incorrect error codes

Adding cloud filters could fail for a number of reasons, unsupported filter fields for example, which fails during validation of fields itself. This will not result in admin command errors and converting the admin queue status to posix error code using i40e_aq_rc_to_posix would result in incorrect error values. If the failure was due to AQ error itself, reporting that correclty is handled in the inner function.

Quoted 4 lines
---
 drivers/net/ethernet/intel/i40e/i40e_main.c |    1 -
 1 file changed, 1 deletion(-)