Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2020 01:13:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 226217] if_qlxgb (QLogic cLOM8214) not working for me when configured via netif
Message-ID:  <bug-226217-7501-tsQJMcpusN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-226217-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-226217-7501@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226217

--- Comment #5 from Christian Vallières <novacrash_@hotmail.com> ---
Comment on attachment 213710
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=213710
Fix that mtu not initialized bug

diff --git a/sys/dev/qlxgb/qla_os.c b/sys/dev/qlxgb/qla_os.c
index 0b5daa98891..997f1eccf76 100644
--- a/sys/dev/qlxgb/qla_os.c
+++ b/sys/dev/qlxgb/qla_os.c
@@ -672,6 +672,9 @@ qla_init_ifnet(device_t dev, qla_host_t *ha)
        if_initname(ifp, device_get_name(dev), device_get_unit(dev));

        ifp->if_baudrate = IF_Gbps(10);
+        ifp->if_capabilities = IFCAP_LINKSTATE;
+        ifp->if_mtu = ETHERMTU;
+
        ifp->if_init = qla_init;
        ifp->if_softc = ha;
        ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
@@ -691,7 +694,6 @@ qla_init_ifnet(device_t dev, qla_host_t *ha)
                                IFCAP_JUMBO_MTU;

        ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU;
-       ifp->if_capabilities |= IFCAP_LINKSTATE;

 #if defined(__FreeBSD_version) && (__FreeBSD_version < 900002)
        ifp->if_timer = 0;

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226217-7501-tsQJMcpusN>