From owner-freebsd-net@freebsd.org Thu Oct 20 08:20:24 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8BFEC1A63F for ; Thu, 20 Oct 2016 08:20:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD9F38B for ; Thu, 20 Oct 2016 08:20:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9K8KOJP086696 for ; Thu, 20 Oct 2016 08:20:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213606] LACP not working with qlogic BCM57800 Date: Thu, 20 Oct 2016 08:20:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: borjam@sarenet.es X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2016 08:20:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213606 Borja Marcos changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |borjam@sarenet.es --- Comment #8 from Borja Marcos --- Deja vu with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D150249 The main symptom was lagg refusing to work in LACP mode.=20 In this case, the reason was that the driver didn't detect media properly, = and the "paperwork" with the kernel failed: the interface wasn't marked as full duplex. As a result, LACP (which checks the full-duplex flag for the interf= ace) refused to use it. Remember that full-duplex is a prerequisite for LACP. This seems to be a case of incomplete paperwork as well, although the neces= sary bits seem to be in place. In my case this was the problem with LACP (ieee8023ad_lacp.c): --------- /* * If the port is not an active full duplex Ethernet link then it c= an * not be aggregated. */ if (IFM_TYPE(media) !=3D IFM_ETHER || (media & IFM_FDX) =3D=3D 0 || ifp->if_link_state !=3D LINK_STATE_UP) { lacp_port_disable(lp); } else { lacp_port_enable(lp); } --------- But according to ifconfig the interface is marked as full duplex and media seems to be Ethernet. I would add some printf's here to check if this is re= ally the case and some other check is failing. What does ifconfig -m say of the interfaces? But that lack of options looks like a driver bug. And it would help to see its capabilities as reported by ifconfig. This is an example with an "em" interface. --------- % ifconfig -m -v -v em0 em0: flags=3D8943 metric 0 = mtu 1500 =20=20=20=20=20=20=20 options=3D4219b =20=20=20=20=20=20=20 capabilities=3D15399b ether 68:05:ca:XX:YY:ZZ inet 192.168.1.202 netmask 0xffffff00 broadcast 192.168.1.255=20 inet 192.168.1.203 netmask 0xffffffff broadcast 192.168.1.203=20 nd6 options=3D23 media: Ethernet autoselect (1000baseT ) status: active supported media: media autoselect media 1000baseT media 1000baseT mediaopt full-duplex media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP --------- --=20 You are receiving this mail because: You are the assignee for the bug.=