From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9761918C930; Thu, 1 May 2025 14:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109411; cv=none; b=oGtZA8JASOI7epKFMWXLDI98Q+xvUXwL/Dpw5P+jc7oDmdOeWR7GionkffJtmDZHchNRR+IodQ7Sxa68A5yFwV6AtFJYcxKOdcVwgPzfy5j3zmhEFZdb5iNE5Nf8jnytNDZHhWojSGa9prZE1ZNlX5cIRHorcKWvRfx+SBxHOnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109411; c=relaxed/simple; bh=sRz0mesXKY2QWf9bTxKjxQP1ZU6ljqpVt5gMZiM+hVE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NYGVRafXBzalvQlm8dPBkLKAjrTipcJLBmSOqRUh3wbPSI6YbtwBSjcpB9EV2laL6HmPD05vmuoRcx8PTpnxq/aqW29rqCBhFXyfrGUEXE2F/x+GCScs8MwNWTAq9/jfNtrF5zw0SqnxpRJllla+A9+gSE7Jd8gPOpIAsiSj5Dk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lipgT58T; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lipgT58T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F1B4C4CEE3; Thu, 1 May 2025 14:23:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746109411; bh=sRz0mesXKY2QWf9bTxKjxQP1ZU6ljqpVt5gMZiM+hVE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lipgT58TEq1jiq3ta7iu9/BJj8eGdw2o0LEhgMeQM/shybSBaDrTBzfhrbC2zZqxd phUpqd0DJ78MxpGI7RSEy8LNzL64/33QRqCax9QiY1imYNONrBGDEynd96/jxNtro0 AmEEgCbTy3FoBPp52qui0izu8nK2jpeIUKkAfhLrZv4BuwzeabcbnCr9bBeIdTYIfh umiJNRtCH397iS4ifNlLnMRNfSzFRMyXdXVaTsFo9BdlmBRYJCLmBLwl8tbdiepL7f x0b3y7vhmvZxSdds1GsvOLQYusFqto6x4/MWb5v5q7+xHEa3YzZWM691vdujez+hX2 m04bgb49DDt6Q== Date: Thu, 1 May 2025 07:23:29 -0700 From: Jakub Kicinski To: Jijie Shao Cc: , , , , , , , , , , , , , Subject: Re: [PATCH net 2/2] net: hibmcge: fix wrong ndo.open() after reset fail issue. Message-ID: <20250501072329.39c6304a@kernel.org> In-Reply-To: <20250430093127.2400813-3-shaojijie@huawei.com> References: <20250430093127.2400813-1-shaojijie@huawei.com> <20250430093127.2400813-3-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 30 Apr 2025 17:31:27 +0800 Jijie Shao wrote: > If the driver reset fails, it may not work properly. > Therefore, the ndo.open() operation should be rejected. Why not call netif_device_detach() if the reset failed and let the core code handle blocking the callbacks? -- pw-bot: cr