Author: arybchik
Date: Mon May 16 07:47:20 2016
New Revision: 299919
URL: https://svnweb.freebsd.org/changeset/base/299919

Log:
  sfxge(4): translate MC_CMD_ERR_EEXIST to host errno value
  
  This is needed because the new MCDI command nvram_private_append can
  return MC_CMD_ERR_EEXIST
  
  Submitted by:   Tom Millington <tmillington at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      1 week

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        Mon May 16 07:45:43 2016        
(r299918)
+++ head/sys/dev/sfxge/common/efx_mcdi.c        Mon May 16 07:47:20 2016        
(r299919)
@@ -632,6 +632,8 @@ efx_mcdi_request_errcode(
                return (EALREADY);
 
                /* MCDI v2 */
+       case MC_CMD_ERR_EEXIST:
+               return (EEXIST);
 #ifdef MC_CMD_ERR_EAGAIN
        case MC_CMD_ERR_EAGAIN:
                return (EAGAIN);
_______________________________________________
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