From nobody Fri Apr 24 02:27:17 2026 X-Original-To: dev-commits-src-main@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 4g1xgT4Dz2z6bfgy for ; Fri, 24 Apr 2026 02:27:17 +0000 (UTC) (envelope-from git@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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g1xgT3fG5z3bCT for ; Fri, 24 Apr 2026 02:27:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776997637; 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=VLQf4zuRQAXqNssc2GE2KQcjzOq97XDgdCQ1SmMRXhE=; b=ogGtHHZ3iW7dmtUxraiBOZtlvJyvRejrwjvBOwyEJJV3Lp95rIoEmXDFohSlsTFhpT2227 LhhVAfHTkveiH6Z8eJ+bDrq+O9VMrBOtqHTCgQflRcVsYP6GtSuJRwwUl4SUj3MqmVMO2o j5qIJeUHP2bY++jpQcHMyvKKKxUj5EWdb34FrtLi0Zes9RwSg9xe9/mM2BIFqb+hY/VkrQ ztvdqB2CsMFsq2O1HlA700Wn3JYpjzMmZeScvPbaCchWjRCa4xx2Ta5f6efduJFzQgvAa+ t+QcjakAGG31LyPFE8aS5zq87W4vnOTAWE4keriuOsEqxNVY/OAjM1/ZsSChMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776997637; a=rsa-sha256; cv=none; b=x/LpRg2m+hX5VjMGFnK9Hv2FDHxSbft6leBXIBgYA5kORZkGRTDIpPbxCW4YP1jwWvnjvp icOB+FAX/kAfcUbT9/JQiNAO8APsIgxziLXoC57kG+IvRsA7Mu9yJBMt0VjI08kkNB1Asz XJFKP8FBGXNvPBEjsP+5EqSUqAMImUVVJ0j+W2a0RwX01G4jVbA2Mg8ZmhLdQ0woKvyswI PCJMtxzudV7F9Rwxp2KffPRXqlSJN0/qRjfWjQY/KnJNM6KQdXza3NUNHyae85sCJSvWS+ ydeIpd636uS6A71XhG8ijTk53IKqwLFW4jIlJT/UtvZM4GSP9+pdME/p/qB97g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776997637; 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=VLQf4zuRQAXqNssc2GE2KQcjzOq97XDgdCQ1SmMRXhE=; b=ihPFM7ihnvaumRZzQ8ytFxO4ZV0ON4G0NgfQyEWcrXr6jBZSWlw9Jn4Q2pkeRMjhyuk6I2 3aXEq9pU+ARDMCbMLXJCbib4npMQHJRx1qrwlBcy4jIV2NKGbGcQajtLN47KfU6FF7TDqc GB56eNvV5DquIeoKAcPIXDKVBcPPut28Zg46ayuocfa8nPIBY7s9NvWuyZg8hdwzD/l/2t Hnum+8/+mr8SgYdIEPKJL4LsuQv8w5hyAghsl2woujXuliW76Ps0qFmezEqFjycS7w+EUv mn/nJfl3GndF4guM+cTrQB/d0Ch+yTbVMRQdCvwAK1hrAc0Ur1ICCoHR8sTnhQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g1xgT2z0vzkGP for ; Fri, 24 Apr 2026 02:27:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3225e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 24 Apr 2026 02:27:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 74dff310698b - main - pseries/llan: call init when ioctl sets interface UP List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 74dff310698b9a4da9804ed0ded00428b0aebbe8 Auto-Submitted: auto-generated Date: Fri, 24 Apr 2026 02:27:17 +0000 Message-Id: <69ead505.3225e.45b10110@gitrepo.freebsd.org> The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=74dff310698b9a4da9804ed0ded00428b0aebbe8 commit 74dff310698b9a4da9804ed0ded00428b0aebbe8 Author: Justin Hibbits AuthorDate: 2026-04-23 03:12:37 +0000 Commit: Justin Hibbits CommitDate: 2026-04-24 02:24:13 +0000 pseries/llan: call init when ioctl sets interface UP This should fix dhcp on an unitialized interface. This solution was found while comparing against another driver, SIOCSIFFLAGS is used by dhclient to force the interface up before it has an IP address. However, all setup work is done in llan_init(), so the interface would not be enabled if configured via only the SIOCSIFFLAGS ioctl. By running llan_init() when the interface is forced up via SIOCSIFFLAGS, the interface is initialized properly. PR: 292164 --- sys/powerpc/pseries/phyp_llan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/powerpc/pseries/phyp_llan.c b/sys/powerpc/pseries/phyp_llan.c index 4ba4549a9cf5..763eebc15b36 100644 --- a/sys/powerpc/pseries/phyp_llan.c +++ b/sys/powerpc/pseries/phyp_llan.c @@ -547,6 +547,10 @@ llan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) err = ifmedia_ioctl(ifp, (struct ifreq *)data, &sc->media, cmd); break; case SIOCSIFFLAGS: + if ((if_getflags(ifp) & IFF_UP) && + !(if_getdrvflags(ifp) & IFF_DRV_RUNNING)) + llan_init(sc); + break; default: err = ether_ioctl(ifp, cmd, data); break;