From nobody Tue Feb 24 10:45:10 2026 X-Original-To: dev-commits-src-all@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 4fKvWB6QpJz6ThSh for ; Tue, 24 Feb 2026 10:45:10 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fKvWB48LGz42dm for ; Tue, 24 Feb 2026 10:45:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771929910; 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=eNzKURkMuM/7h5W+t9172Tv0OqsnxfDUyzBigUFMeV0=; b=jAwW/eWz4g3ZT1X+VazmQR9IfAucpd6bmgOPv0T8+Y/O6MQBZlsLJhqplOETn429cnYae+ myRw2IHc1s3ZQ0UV7SeLYmsWCvij1L+drvkAkDA2rhGUiIfZb2+N1hWYNLOt/VIPHNYpap 1ojibqKwF3p97xN317r45rz+sYg/kgxuFjqciGuUEVwd9yHIvHjZ3j4gimT/prAvs1bOfP Yhns+dRPTjKRtQPSUCGHTbcAkWsdeQcTGhqYKUJ/uCSGO1nM/0GdYY8KcPjzP0N4bcVm29 kZy5M9fVeenJyxzNraMVgXJjpxKs/atrmXIuazxJDHU/3f652KKN9TlDB4SI8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771929910; a=rsa-sha256; cv=none; b=ZAJ+7Q2lRbKedMZ58OHzw3FKk6Dlq/voaUSMOPeSzM0dvRlFrNiqAsMAzZj+TMxn215V+K 7R0EVAWNXrl5ENgAZEdD5RmldSOoYnoE/hh8mqB5iA7gkm49qp4PQB3aVxYQ3wdn+CQlb4 5UalPnFWiwGLwQtio2p3PbZ72pxA95dq2cswwNn9/Yf7QFLmFR2o5ia7xsdbl3GlRH1som PXRUC2d50q8NFu9ES0fvRlqtWI1J3I+aMso6XcDuqO3B6eHWIzPHISh9B3k8RZ3RPNjjTM bpv8u4fsGVXgOzfcSseSW/Iz8vJ152kE+z9C7kU3TtFKS2bbMrXdsIpPG4P4ww== 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=1771929910; 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=eNzKURkMuM/7h5W+t9172Tv0OqsnxfDUyzBigUFMeV0=; b=NjrhRK+lWXKMxNHn8Xb5osB5QVVIy0XiY2UtpZTRXKqN9az9DVLKsWMyCVxrh8lIZEzaUB s/zemX4EpqunWvW8huTP/tJVzOOcPhgk4lt/ScmOMpmisn58nt/mopHoj6RxwYfLtxicxF b4asRzkHvbSncvnjCjj/mwDSJKfDMW4NBDlJ5cnJnSZa8i3XjJB4YwNvE9sj8k+FE5zK9n Egmkd4/PFTEtBKkVvO5RenvYEysPsGVS2eLmaJkdQULPHl58PmSp2X7wL8uAG/4zvCnR4C oObxITPKSD9CuINvDj3NiE+nbAFW9BSN6MP6HV2p+aelEHkIHJQ47bW267yg5w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fKvWB3lT6z1Bmy for ; Tue, 24 Feb 2026 10:45:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36620 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 24 Feb 2026 10:45:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: aef23e8e2736 - stable/13 - qlnxe: Avoid reinitializing the interface when it is already initialized List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: aef23e8e2736e839051bd7664b19ec0b9dc2dbf3 Auto-Submitted: auto-generated Date: Tue, 24 Feb 2026 10:45:10 +0000 Message-Id: <699d8136.36620.2a37f8ec@gitrepo.freebsd.org> The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=aef23e8e2736e839051bd7664b19ec0b9dc2dbf3 commit aef23e8e2736e839051bd7664b19ec0b9dc2dbf3 Author: Zhenlei Huang AuthorDate: 2026-02-06 17:52:54 +0000 Commit: Zhenlei Huang CommitDate: 2026-02-24 10:15:37 +0000 qlnxe: Avoid reinitializing the interface when it is already initialized qlnx_init_locked() unconditionally uninitialize the interface thus is actually reinitializing the interface. Well the init routine qlnx_init() is to initialize the interface by net stack when assigned with the first inet or inet6 address. The ioctl SIOCSIFADDR for the first inet6 address is handled by ether_ioctl() thus the interface is reinitialized no matter it was initialized or not. Add a driver status check for that to avoid reinitializing. Further plan is removing SIOCSIFADDR ioctl from the driver and let ether_ioctl() handle it. Reviewed by: kbowling MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D54887 (cherry picked from commit c10e6bc0f0079e90cb484323ad71d437f1882422) (cherry picked from commit 8731ff4871d5397bae65bf184c44629a52c0e97b) (cherry picked from commit ee6495580925b337f5851b6ee0f1188f81d7a6c8) --- sys/dev/qlnx/qlnxe/qlnx_os.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c index f0d83c3356ff..8bb599065f0c 100644 --- a/sys/dev/qlnx/qlnxe/qlnx_os.c +++ b/sys/dev/qlnx/qlnxe/qlnx_os.c @@ -2480,7 +2480,8 @@ qlnx_init(void *arg) QL_DPRINT2(ha, "enter\n"); QLNX_LOCK(ha); - qlnx_init_locked(ha); + if ((ha->ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) + qlnx_init_locked(ha); QLNX_UNLOCK(ha); QL_DPRINT2(ha, "exit\n");