net/i40e: fix returned code for RSS hardware failure
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 8 Jan 2021 05:35:39 +0000 (13:35 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 18:20:09 +0000 (19:20 +0100)
commitc222d2a1d00719564526e5a14ca24622bebc0712
treec100830cef6964cbfb851387399c3899cd77b2f6
parent742d9f87f6b8fffb8133099bbc916911d35ee619
net/i40e: fix returned code for RSS hardware failure

The API should return the system error status, but it returned the
hardware error status, this is confuses the caller.
This patch adds check on hardware execution status and returns -EIO
in case of hardware execution failure.

Fixes: 1d4b2b4966bb ("net/i40e: fix VF overwrite PF RSS LUT for X722")
Fixes: d0a349409bd7 ("i40e: support AQ based RSS config")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c