ixgbe: fix the return value for unsupported VF offload
authorShannon Nelson <shannon.nelson@oracle.com>
Wed, 22 Aug 2018 23:47:15 +0000 (16:47 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 28 Aug 2018 21:33:38 +0000 (14:33 -0700)
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>
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c

index 0a1c8bf3f74f48bb54cfb62402fd62d4e66c7545..fd1b0546fd675b87f37598b6f3842933bedf0a6e 100644 (file)
@@ -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;
        }