From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 3277213957E; Sat, 13 Jul 2024 14:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720881714; cv=none; b=N9kyrapSfsYgIODedzHJUHuTjRVza7wd72kyUkMtMjXzQrjopbn1/Ix9OYxPGDT1NyXckT6oUEgLbN/DLz7//vh67CL20jI0wGiN+RQylCv20Kx5oluELGdp0EGo++9b9yz2TEqJ9Yirr1iEtLbiZZfFL0i7+lz5bgNbR8rFH9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720881714; c=relaxed/simple; bh=lq1aHbUl37PMTZuPrCpKplzJKSFpje0S5Qu6bBGoyE0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RrHgtE1+2SSXbEV6FScMHWM3YSa+wl+BF5DI/A3ws3rs8Sc3zgUroFWDRvO/P4xmyWRfN3iW+bKVyiu9HyfvQPK9Xl7VUG5XOoAGcJCItF5SeXRTuGTBdLnDsQHAzhO2x7M4jGcBsHHwNNOy+EJKGF82l7lC2JJcfFeol5kw15I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=sKGRVReP; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="sKGRVReP" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=e/BXSwiXqGECBGWmSMc9ZqyV2x4E7YNDJaAAaD3oAIA=; b=sKGRVRePyxSrheYN81sicow1TK wz2xywaRWiZHTeRFi2SljM18oN2NyjHZE98QeUv8FvKB376Je7fWeCiR/1mbWtvxrCBkVeultnZep MbsrMJb6qQhrTNm9m0d2JxGLN3+GiJ1kGoR8ZNcHJzkawpAdjjoFxdfcX3RZ8Cc3/Na0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sSdwL-002ShD-Nr; Sat, 13 Jul 2024 16:41:33 +0200 Date: Sat, 13 Jul 2024 16:41:33 +0200 From: Andrew Lunn To: Nikita Kiryushin Cc: Sudarsana Kalluru , Manish Chopra , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH net-next] bnx2x: turn off FCoE if storage MAC-address setup failed Message-ID: References: <20240712132915.54710-1-kiryushin@ancud.ru> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240712132915.54710-1-kiryushin@ancud.ru> On Fri, Jul 12, 2024 at 04:29:15PM +0300, Nikita Kiryushin wrote: > As of now, initial storage MAC setup (in bnx2x_init_one) is not checked. > > This can lead to unexpected FCoE behavior (as address will be in unexpected > state) without notice. > > Check dev_addr_add for storage MAC and if it failes produce error message > and turn off FCoE feature. How broken is it when this happens? This is called from .probe. So returning the error code will fail the probe and the device will not be created. Is that a better solution? Andrew