summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorAmritha Nambiar <amritha.nambiar@intel.com>2017-11-18 00:35:57 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-11-27 23:29:01 +0100
commit80752a98a0a0f666b263fecea327d4018b3f36f9 (patch)
tree8852293b52664dbaea309998d097cfb9899fb6ae /drivers/net
parente1000e: fix the use of magic numbers for buffer overrun issue (diff)
downloadlinux-80752a98a0a0f666b263fecea327d4018b3f36f9.tar.xz
linux-80752a98a0a0f666b263fecea327d4018b3f36f9.zip
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 correctly is handled in the inner function. Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 4c08cc86463e..321d8be80871 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -7401,7 +7401,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;
}