Author: arybchik
Date: Wed Dec 28 15:24:44 2016
New Revision: 310704
URL: https://svnweb.freebsd.org/changeset/base/310704

Log:
  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.
  MFC after:      2 days

Modified:
  head/sys/dev/sfxge/common/efx_mcdi.c

Modified: head/sys/dev/sfxge/common/efx_mcdi.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_mcdi.c        Wed Dec 28 14:50:39 2016        
(r310703)
+++ head/sys/dev/sfxge/common/efx_mcdi.c        Wed Dec 28 15:24:44 2016        
(r310704)
@@ -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-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to