svn commit: r348386 - head/sys/dev/ena
Marcin Wojtas
mw at FreeBSD.org
Thu May 30 13:06:08 UTC 2019
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 at 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);
}
More information about the svn-src-head
mailing list