svn commit: r310704 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Wed Dec 28 15:24:46 UTC 2016


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);


More information about the svn-src-all mailing list