Module Name: src
Committed By: msaitoh
Date: Mon Aug 28 09:50:12 UTC 2023
Modified Files:
src/sys/dev/pci: if_vmx.c
Log Message:
Set IFM_FDX flag if the link is up.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/if_vmx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_vmx.c
diff -u src/sys/dev/pci/if_vmx.c:1.12 src/sys/dev/pci/if_vmx.c:1.13
--- src/sys/dev/pci/if_vmx.c:1.12 Thu Aug 10 08:24:44 2023
+++ src/sys/dev/pci/if_vmx.c Mon Aug 28 09:50:12 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vmx.c,v 1.12 2023/08/10 08:24:44 riastradh Exp $ */
+/* $NetBSD: if_vmx.c,v 1.13 2023/08/28 09:50:12 msaitoh Exp $ */
/* $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.12 2023/08/10 08:24:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.13 2023/08/28 09:50:12 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_if_vmx.h"
@@ -3638,7 +3638,7 @@ vmxnet3_ifmedia_status(struct ifnet *ifp
ifmr->ifm_status |= IFM_ACTIVE;
if (ifp->if_baudrate >= IF_Gbps(10ULL))
- ifmr->ifm_active |= IFM_10G_T;
+ ifmr->ifm_active |= IFM_10G_T | IFM_FDX;
}
static int