From nobody Thu Mar 03 13:54:42 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 56DF919E0FC3 for ; Thu, 3 Mar 2022 13:54:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K8XXy5wwpz3JC7 for ; Thu, 3 Mar 2022 13:54:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A85A219107 for ; Thu, 3 Mar 2022 13:54:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 223DsgtS032341 for ; Thu, 3 Mar 2022 13:54:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 223DsgTK032340 for bugs@FreeBSD.org; Thu, 3 Mar 2022 13:54:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262316] em(4) does not autonegotiate when fixed media is set Date: Thu, 03 Mar 2022 13:54:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fbsd@opal.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646315682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bbrGtG5WjjnBEa6zRvJL19zAY4NzgAqA0Jjet1sXDz4=; b=fQzLtUmdyQq0dcRHKGjRBMk7dIFUh4IYzxy53UW0cLTHnY97n28xxGyzTYpvkf8Eh//CL6 Fxe5NM2T1qAj/wAOXqFKe6JuHPbWQFBq9kdcyWEvO6VOE0l5prLPEzU/2nglzAGzWwe0FL 09/4YqaV+B0EOzI+V5ZEsmBdm8yzFrnjMDnny0MOaZ4IXbHnZ6GQQBOTQJDXUX+wdEbvB+ y+I0phvLnxBNIGQxX/Uo0HkyoIupg7P6hQuD/J1O+88ckJ9zSNxxgWq96ZAs8wW94/lagO 7S05nBP+97To7yz/iFxXgCAP+XXE+Gg+eJEEX+KCUTsreDvULxohcldd06hCig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646315682; a=rsa-sha256; cv=none; b=XXrsmGlL8bbU2vyi+SNkN3BIsTamlMYboAViBV0z/eo43H0ry+Y6+RCWbWn1f0IWE8PWIA YqHcvcPvy2nAm5rBqWBX5YgZ/zwM4xgo8hbhW7u/VGeaKdC2nLM/i8DUSWiSWLhlrDYA1M xHVwq1AiskpBliqAUYL94mBSqLyfBAVI8cYxnaLylgzVrCGjSH1KE2XzuIFihEMeyQZqJQ jQthBlVD/4lsYzGpn/d9PT05I96fQ1DsozPhA1aBHLBNTDoDFJyLjpxdzQ2SLdBdMD21KP luf1BftUMf7NLZvXs76m/5rcTIYUtx5odEc05lpG9dqPrnJ2FmccsJVJjBA9ZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262316 Bug ID: 262316 Summary: em(4) does not autonegotiate when fixed media is set Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: fbsd@opal.com Created attachment 232221 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232221&action= =3Dedit patch to enable autonegotiation in em(4) for fixed media settings Following brief discussion on freebsd-net@ [1] ... An em(4) interface configured with fixed media/mediatype settings, as in: ifconfig em0 media 100baseTX mediatype full-duplex does not respond to autonegotiation from the switch it is connected to.=20 (Actually, it does for 1000base but not for 100base or 10base.) As a resul= t, the switch may end up with mismatched configuration. Attached patch enables autonegotiation even when media settings are set to fixed 100base or 10base. The autonegotiation will advertize just the configured media setting. I think there should probably also be: hw->phy.autoneg_wait_to_complete =3D FALSE; for these 100base and 10base cases to handle the situation where the other = end isn't going to autonegotiate either. I have no means to test this. [1] https://lists.freebsd.org/archives/freebsd-net/2022-March/001371.html --=20 You are receiving this mail because: You are the assignee for the bug.=