From owner-freebsd-net@FreeBSD.ORG Mon Dec 15 01:23:45 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 800C44F8 for ; Mon, 15 Dec 2014 01:23:45 +0000 (UTC) Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [IPv6:2607:f8b0:400e:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4973ABA5 for ; Mon, 15 Dec 2014 01:23:45 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id z10so10688991pdj.0 for ; Sun, 14 Dec 2014 17:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dpdtech.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=RVHXPA2eWDZgphXuD3p41AYvUAME0gVVzHGYYRadJpU=; b=H6XlVtoKFNfELJ+kKQxrVeGafNwDzfmhgJIGik+KX5//GKjhl3r/Yg7PCTCtxxfj2m qmBztyU5XYHJ0xG3WdeAN6Io8kVbfVEFCU6yTH9drvptXKQPe50xbfGINzRbih0+BE7u 8qxTwxqjIcOD/4K3UCzotL73pc5kmD8OrP7AE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=RVHXPA2eWDZgphXuD3p41AYvUAME0gVVzHGYYRadJpU=; b=IGgameqC1d1ZhiYOJgP050nSNhW9zvfrSbXfAWyanrclvwV6tbgVKalqeAGjcUuYlX 7SEytr7uWhPsgPOyV/94xqVrvjJ1CBXSPL+2j0kPgl3sLsp7vovcaVklPnOo++ZhYbUA Ub9Kg60WOgYDEnzCTbi6K2NwLwNLmqdnf1rJZug/CzbOIqtLqfXjnPvFOYD6mvMhQSaa Wn2Ae5oKAe8ESZql6vNItWiaCc1rppc98HAANTZfujVor01g7vHlsQPpfhFcJfuznjXy J4knWrZV3EwDQIWOEMStYy55AG/9xiU1TW8Wm+NmWN9MC6sBoy09EscOB3nVYaX3ZKYM SLYg== X-Gm-Message-State: ALoCoQlmTGWqIWRQMvKTPFiQ1BU5eZMgIn6vJ7jntXCNxjGI2n/Vy4avhF9sVdTEu5FR4QlbC0X7 X-Received: by 10.70.89.174 with SMTP id bp14mr46156518pdb.136.1418606624517; Sun, 14 Dec 2014 17:23:44 -0800 (PST) Received: from 173-13-188-41-sfba.hfc.comcastbusiness.net (173-13-188-41-sfba.hfc.comcastbusiness.net. [173.13.188.41]) by mx.google.com with ESMTPSA id m3sm7496828pda.75.2014.12.14.17.23.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Dec 2014 17:23:43 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_DFDFF179-6950-4CA4-9980-D3FE7162317E"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: FreeBSD 10-stable (r274577) LACP / IEEE 802.3ad with TP-Link TL-SG2008 - not working From: "David P. Discher" In-Reply-To: <3D993418-E632-44BA-8FE2-2F3F34188F20@dpdtech.com> Date: Sun, 14 Dec 2014 17:23:50 -0800 Message-Id: <34276C9E-CAEF-4E3F-AA2A-568F2D3099EC@dpdtech.com> References: <1A44709E-7D0C-4932-8A28-383EAC3F340B@dpdtech.com> <9AE69175-92D9-49FA-A651-119C7046A1FA@dpdtech.com> <5480D8EF.9000804@egr.msu.edu> <3D993418-E632-44BA-8FE2-2F3F34188F20@dpdtech.com> To: Adam McDougall X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 01:23:45 -0000 --Apple-Mail=_DFDFF179-6950-4CA4-9980-D3FE7162317E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 So, I think I=92ve identified the issue. In sys/net/ieee8023ad_lacp.c, = lacp_pdu_input() has a sanity check : if (m->m_pkthdr.len !=3D sizeof(*du)) { goto bad; } I added some debugging information in if_lagg, and ran with it. The = lacpdu packet that being sent by the TP-Link switch is 4 bytes longer = than the FreeBSD "struct lacpdu du=94. =20 em1: lacp_pdu_input-sizeof(du) bad m_pkthdr.len=3D128 = sizeof(du)=3D124 My packet captures shows the packet size differing as well. I=92m still poking around. I=92ve been trying to look for the official = LACPDU binary/wire format =85 if someone can point me to the reference = for that, that would be helpful (at least my own understanding).=20 Not exactly sure what these extra 4 bytes are at the end of the packet. = Still trying to figure that out. - David P. Discher http://davidpdischer.com/ AIM: DavidDPD | Y!M: daviddpdz=20 On Dec 4, 2014, at 8:41 PM, David P. Discher wrote: > Thanks Adam - >=20 > On Dec 4, 2014, at 1:58 PM, Adam McDougall = wrote: >=20 >>=20 >> Is the switch side set to "active" for the lacp mode (instead of >> passive)? Also, try: >> sysctl net.link.lagg.0.lacp.lacp_strict_mode=3D0 >>=20 >> If either of those work, I'll explain more, don't have time to dig = for >> old email right this minute. >=20 > Yes, the switch was in active mode. Turn strict mode off (which I = thought I did before, but of course this sysctl clears when destroying = the interface). So, the LACP did finally negotiated, at least in = ifconfig : --Apple-Mail=_DFDFF179-6950-4CA4-9980-D3FE7162317E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUjjgnAAoJEEmwU6XuhYWOL8IH/0q8hySF4LisSyJqae/q8eFc C1DGUrDlDJtIXz8ddtIW+/0SNtNEvxHxSokqxK2bfffr+aCoLbr/wN2SY0l99Pjx 1UKtDDzO2IORExVnJI785d4Impr00ZlQjKy/hSHVmthAVPEw20zZt1wrA1T7s7yP 2BYscWBxhqvj9LsMSdL4A7k46FqxukYekCTq7GF+Gx7mAzYXq5aWeW606zVh9e0b Q4LhqVAIl/242e3exVlnfWBrZyXvVrZiZ7qZckm4uKelKS6OojYuSl9UmqsdDOZE vE4zxUjhnvPe5gB0gwec/1fPRi/LV7zjRgKLBqCIzZEmrw5+ujJsdeeT3uvwWnU= =gOqu -----END PGP SIGNATURE----- --Apple-Mail=_DFDFF179-6950-4CA4-9980-D3FE7162317E--