From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796510861; b=4FVgFQ3JExdeVQL44gjEuDmSh7cwJtcx3Enadahg4ooJ2r5F4a3kkVmagoQFJKHz/xQL gh4hjtGv2P6ovy/Qk8YlBeFdrsshiR+ZnlCSutE1vTO0s4+xidjYYxf979HO97nwrL3dT sBXzfVfxUVOBqZDnvJktWhv4vfUCRxR6Zeo3U4GXT6JhwYcpGC5z8SdLVtPL5gb7wRn1+ /6csNoi2ENBAxQAIFAtHQmLqHeSxuxYaE4KRC7ntAq2+HD+0jUgB3z8oZ5b+v2/8i0d/r 1zievqax0bRrCv4/UY+X4Rsf0mASBNnJurLfCaOKjKlnxnnpPtJvyMcp3CbHBmcGbMA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796510861; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=DzjjhFWOPkTsr9Vl3jRNrynU8avT8c6m3pCdPQ1q3p4=; b=vg40E+asnU9tyKWhWtiCfwwjD/n+7ZzvWdJKcMgSpBNy4QARNc9nxCqwhoODUBMMYtfE vSHw1z/pEakzzijPzKhbZZGh1lc784afcTiiQH/2ZrORWfT8m5REPINYS/QGHx75J9g4H Wb20Cvy1vsxNNDQZFXhIq67UzRiSQOV4OplYvN1MZlN7aEfvmymdZocwxbCgkHbYp3FPi e2+Ghf7TGg9W91OXtThgIxeC7Kg4/kO6DjM7fbJT01HeKyd1kGxUq96NnvDE8vyYGWYiY DO4B6ijuA1HwHfnY6gDQobDvaJ6gAd2zjiy5TyYPQAGk+F/i+FhRd22FUPWQ0YADyJw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BsIjYjxK; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08A10606A334 for ; Sat, 5 Dec 2026 22:47:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BsIjYjxK Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22DDA1F0092B; Sat, 5 Dec 2026 22:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796510860; bh=DzjjhFWOPkTsr9Vl3jRNrynU8avT8c6m3pCdPQ1q3p4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=BsIjYjxKy714JCufWexMpFyzxoKASk3Eo5mhLmL3tlWtvmCEZ8elnou6jPh504cCm wulk6yl6+g90u/kvzGn6mgyidhtdZ5ssxG8ojI2v7/nUAd/TbmKVUAnfh0OFq7P9gH N7uBf+B9abLQtMy6a+i9n7wshwwG3+G3pH3TR+iYhM4qReYJFw5scH1P7P8ReIYXUS jhv6El5t4rFGnze1nW+BNUTfQ6bnqk5FibiqnKT9rlFiX/GIAT0hyasN9HYudCegdP TDmbRwixzWK/wVD96ie+3p40aMw4XMaeiexogS3ZJkJsaiNHAxov1T6i+NWC1oMlsq ehQUrklhqThRg== Subject: Re: [PATCH net-next 5/5] ixgbevf: Warn when mailbox API negotiation fails From: netdev-bot+sashiko@kernel.org To: anthony.l.nguyen@intel.com Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, andrew+netdev@lunn.ch, willemb@google.com, netdev@vger.kernel.org, adiyenga@cisco.com, jedrzej.jagielski@intel.com, jacob.e.keller@intel.com, aleksandr.loktionov@intel.com, rafal.romanowski@intel.com Date: Sat, 05 Dec 2026 22:47:39 +0000 Message-ID: <179651085969.3148.7211491571062117923@kernel.org> In-Reply-To: <20261204223807.3920143-6-anthony.l.nguyen@intel.com> References: <20261204223807.3920143-6-anthony.l.nguyen@intel.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message repeats itself. - [Low] The new warning in ixgbevf_negotiate_api() (drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c) has two… -- ixgbevf: Warn when mailbox API negotiation fails This patch adds a netdev_warn() to ixgbevf_negotiate_api() for the case where every mailbox API version from ixgbe_mbox_api_17 down to ixgbe_mbox_api_10 is rejected. The warning includes the error from the last attempt. Negotiation and fallback behavior are unchanged. > This is a diagnostic improvement only; negotiation, fallback and recovery > behavior remain unchanged. > > This is a diagnostic improvement only. [Severity: Low] This isn't a bug, but the second sentence repeats the first paragraph and looks like an editing leftover. Could it be dropped? > diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c > index 7eb4acf59dab6..52670b616abc2 100644 > --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c > +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c > @@ -2344,6 +2344,10 @@ static void ixgbevf_negotiate_api(struct ixgbevf_adapter *adapter) > idx++; > } > > + if (api[idx] == ixgbe_mbox_api_unknown) > + netdev_warn(adapter->netdev, > + "Mailbox API negotiation with PF failed: %d\n", err); [Severity: Low] Will this printed value be misleading? The err value never holds a kernel errno. It comes from ixgbevf_negotiate_api_version_vf() in vf.c, which returns either the mailbox result or IXGBE_ERR_INVALID_ARGUMENT: drivers/net/ethernet/intel/ixgbevf/vf.c:ixgbevf_negotiate_api_version_vf() { ... err = ixgbevf_write_msg_read_ack(hw, msg, msg, ARRAY_SIZE(msg)); if (!err) { ... err = IXGBE_ERR_INVALID_ARGUMENT; } return err; } These private codes in defines.h use the same numbers as errno values: #define IXGBE_ERR_INVALID_ARGUMENT -3 #define IXGBE_ERR_CONFIG -4 #define IXGBE_ERR_MBX -5 #define IXGBE_ERR_TIMEOUT -6 So "failed: -5" reads like -EIO but means IXGBE_ERR_MBX. Similarly, -3 reads like -ESRCH but means the PF rejected every version. Since the goal of the patch is easier diagnosis, could the message say that this is a driver code, or translate it to an errno or a string? The first call comes from probe, before the netdev has a name: ixgbevf_probe() ixgbevf_sw_init() ixgbevf_negotiate_api() netdev_warn(adapter->netdev, ...) ... strcpy(netdev->name, "eth%d"); err = register_netdev(netdev); At that point netdev_warn() prints the device as "(unnamed net_device) (uninitialized)". The PCI device is still shown because SET_NETDEV_DEV() has already run. The other messages in ixgbevf_sw_init() use dev_info(&pdev->dev, ...). Would dev_warn(&adapter->pdev->dev, ...) give clearer output here, including on the later ixgbevf_reset() path? > + > ixgbevf_set_features(adapter); > > if (adapter->pf_features & IXGBEVF_PF_SUP_ESX_MBX) { -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204223807.3920143-1-anthony.l.nguyen%40intel.com