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/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226217 --- Comment #5 from Christian Valli=C3=A8res <novacrash_@hotmail.com> --- Comment on attachment 213710 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D213710 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 =3D IF_Gbps(10); + ifp->if_capabilities =3D IFCAP_LINKSTATE; + ifp->if_mtu =3D ETHERMTU; + ifp->if_init =3D qla_init; ifp->if_softc =3D ha; ifp->if_flags =3D 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 |=3D IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU; - ifp->if_capabilities |=3D IFCAP_LINKSTATE; #if defined(__FreeBSD_version) && (__FreeBSD_version < 900002) ifp->if_timer =3D 0; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226217-7501-tsQJMcpusN>