Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2019 13:06:07 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348386 - head/sys/dev/ena
Message-ID:  <201905301306.x4UD67AG055311@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mw
Date: Thu May 30 13:06:07 2019
New Revision: 348386
URL: https://svnweb.freebsd.org/changeset/base/348386

Log:
  Do not specify active media type in ENA
  
  As the ENA is working only in virtualized environment, the active media
  is not specified. Instead, the active link type is set as unknown.
  
  Submitted by:  Michal Krawczyk <mk@semihalf.com>
  Obtained from: Semihalf
  Sponsored by:  Amazon, Inc.

Modified:
  head/sys/dev/ena/ena.c

Modified: head/sys/dev/ena/ena.c
==============================================================================
--- head/sys/dev/ena/ena.c	Thu May 30 13:01:46 2019	(r348385)
+++ head/sys/dev/ena/ena.c	Thu May 30 13:06:07 2019	(r348386)
@@ -2336,7 +2336,7 @@ ena_media_status(if_t ifp, struct ifmediareq *ifmr)
 	}
 
 	ifmr->ifm_status |= IFM_ACTIVE;
-	ifmr->ifm_active |= IFM_10G_T | IFM_FDX;
+	ifmr->ifm_active |= IFM_UNKNOWN | IFM_FDX;
 
 	mtx_unlock(&adapter->global_mtx);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905301306.x4UD67AG055311>