Author: arybchik
Date: Mon Jan  2 09:17:29 2017
New Revision: 311067
URL: https://svnweb.freebsd.org/changeset/base/311067

Log:
  MFC r310704
  
  sfxge(4): translate MC_CMD_ERR_ERANGE to host errno value
  
  This is needed because MCDI command MC_CMD_REKEY can return
  MC_CMD_ERR_ERANGE.
  
  Submitted by:   Tom Millington <tmillington at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/common/efx_mcdi.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/efx_mcdi.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_mcdi.c   Mon Jan  2 09:16:23 2017        
(r311066)
+++ stable/10/sys/dev/sfxge/common/efx_mcdi.c   Mon Jan  2 09:17:29 2017        
(r311067)
@@ -646,6 +646,8 @@ efx_mcdi_request_errcode(
        case MC_CMD_ERR_ENOSPC:
                return (ENOSPC);
 #endif
+       case MC_CMD_ERR_ERANGE:
+               return (ERANGE);
 
        case MC_CMD_ERR_ALLOC_FAIL:
                return (ENOMEM);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to