[Bug 226217] if_qlxgb (QLogic cLOM8214) not working for me when configured via netif

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 24 01:13:51 UTC 2020


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

--- Comment #5 from Christian Vallières <novacrash_ at 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.


More information about the freebsd-net mailing list