]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix reporting incorrect error codes
authorAmritha Nambiar <amritha.nambiar@intel.com>
Fri, 17 Nov 2017 23:35:57 +0000 (15:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 27 Nov 2017 22:29:01 +0000 (14:29 -0800)
commit66e4ed1be09d62252937fa859a70dfa294e75b27
tree8852293b52664dbaea309998d097cfb9899fb6ae
parent8bcc0b1a1ae7b4fd02ba05e974210766da018b09
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>
drivers/net/ethernet/intel/i40e/i40e_main.c