From: Shannon Nelson Date: Wed, 22 Aug 2018 23:47:15 +0000 (-0700) Subject: ixgbe: fix the return value for unsupported VF offload X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5ed4e9e990eea130b9881da3655c56cfc5646da7;p=openwrt%2Fstaging%2Fblogic.git 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 Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- 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; }