Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fix missing IFM_FDX



details:   https://anonhg.NetBSD.org/src/rev/dd2e619b5c40
branches:  trunk
changeset: 960018:dd2e619b5c40
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Fri Mar 05 13:21:07 2021 +0000

description:
Fix missing IFM_FDX

diffstat:

 sys/dev/pci/if_iavf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 50bb0e0224dc -r dd2e619b5c40 sys/dev/pci/if_iavf.c
--- a/sys/dev/pci/if_iavf.c     Fri Mar 05 07:15:53 2021 +0000
+++ b/sys/dev/pci/if_iavf.c     Fri Mar 05 13:21:07 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iavf.c,v 1.12 2021/02/09 15:05:49 jakllsch Exp $    */
+/*     $NetBSD: if_iavf.c,v 1.13 2021/03/05 13:21:07 yamaguchi Exp $   */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iavf.c,v 1.12 2021/02/09 15:05:49 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iavf.c,v 1.13 2021/03/05 13:21:07 yamaguchi Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -4435,6 +4435,7 @@
                if (event->link_status) {
                        link = LINK_STATE_UP;
                        sc->sc_media_status |= IFM_ACTIVE;
+                       sc->sc_media_active |= IFM_FDX;
 
                        ifp->if_baudrate = 0;
                        speed = iavf_find_link_speed(sc, event->link_speed);



Home | Main Index | Thread Index | Old Index