summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@oracle.com>2018-08-22 16:47:15 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-08-28 14:33:38 -0700
commit5ed4e9e990eea130b9881da3655c56cfc5646da7 (patch)
tree719f945f490f187f7ad838f3154b6f5eafae8144 /drivers/net/ethernet/intel/ixgbe
parent47b6f50077e68bcd544f657526dad4bfdce7e87d (diff)
downloadlinux-5ed4e9e990eea130b9881da3655c56cfc5646da7.tar.bz2
ixgbe: fix the return value for unsupported VF offload
When failing the request because we can't support that offload, reporting EOPNOTSUPP makes much more sense than ENXIO. Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
index 0a1c8bf3f74f..fd1b0546fd67 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
@@ -894,7 +894,7 @@ int ixgbe_ipsec_vf_add_sa(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf)
* device, so block these requests for now.
*/
if (!(sam->flags & XFRM_OFFLOAD_INBOUND)) {
- err = -ENXIO;
+ err = -EOPNOTSUPP;
goto err_out;
}