i40e: Fix reporting incorrect error codes
Subsystems (2)
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
@@ -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; }
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_posixwould 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
Signed-off-by Amritha Nambiar <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_main.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/intel/i40e/i40e_main.c +0
-1@@ -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
Bowers
PATCH 1/1 i40e: Fix reporting incorrect error codes
In reply to Amritha NambiarQuoted 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 codesAdding 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_posixwould 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
Signed-off-by Amritha Nambiar <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_main.c | 1 - 1 file changed, 1 deletion(-)