Article View: linux.kernel.netdev
Article #27539Re: [PATCH net-next 5/5] ixgbevf: Warn when mailbox API negotiation fails
From: netdev-bot+sashiko
Date: Sat, 05 Dec 2026 22:47
Date: Sat, 05 Dec 2026 22:47
97 lines
11321 bytes
11321 bytes
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
Technical Details
Message-ID:
<179651085969.3148.7211491571062117923@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-378168-linux-kernel-netdev=dewy.ruReferences:
<20261204223807.3920143-6-anthony.l.nguyen@intel.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-378168-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 5/5] ixgbevf: Warn when mailbox API negotiation fails Date: Sat, 05 Dec 2026 22:47:39 +0000 Organization: Usenet Network Message-ID: <179651085969.3148.7211491571062117923@kernel.org> References: <20261204223807.3920143-6-anthony.l.nguyen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3136810"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QXnse1KdoOxtmcGTfLuJeVuWngk= sha256:i4ci+dBYSl2igqAs+JQm/5TlolEJA72aJlIHB2o1iNM= sha1:XvioxjjEGvAo53OBrMis6W7Ih+I= sha256:3ZUGOJrGaugOr31updeLY+csl10G8G8r91oqWCsWzB8= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A304B117EDD; Sun, 6 Dec 2026 01:48:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.539 X-Spam-Status: No, score=-3.539 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.14, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FAZ-rpNWhuTY; Sun, 6 Dec 2026 01:47:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-378168-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A1C1C117EDE; Sun, 6 Dec 2026 01:47:49 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id B5B4332056; Sat, 5 Dec 2026 22:47:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796510861; b=j3L+kowiAIjtb2R+9BXPZTZwN3BVZQBpKX1unYUMzzbFmfcHuXES70UhfvI8mwni39a0 d+ZSLUXNEnspMd91wsPZYpyukwSbzjJvahDhpYeaV/HjoIk9ca2H5H748VrUkiUCB0nl+ p4lyvs6Q6BnbXYlZDqxVKSQWj9klpSMMzTphWszD7pdvRLv9kTnFjUAUTd+GyKJo31SES LvNik0lYYldd1Pi91rIUaZTm4kpRZhp0fFp29q6Gb4zSkUHe7OSlaVvjyfHSgdOD8sX15 f/hqGcpzgG/eThxeP1tPddh4FYMk2fvO4k/DFGDM9ywMtUNihjx7Z/dMKfKAmHWrsnw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796510861; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=DzjjhFWOPkTsr9Vl3jRNrynU8avT8c6m3pCdPQ1q3p4=; b=LJLMKjntehGKfGA+m8TWk0C4yd0YRUDxdmru/6oIEMArgXxH5TUSooLgo8tyXhJz9USk Ebd/Mj93EfLMvjt8jYLQIj0rPVz4t4cLQcc4wu8gyZAAd6mcOozd+KVxS4kET3JRe3/+R cs8cv87IlRw+Q8HGO9O8eqI6/OQOVD5UZLvOu0Egbx11Dev17oYXmbR/p5vMTTs0usGTT 9kKQHge9WB/nIfq2co3nfUYEIZs1LAu7hZ5KhwklbWcs5I8dUZE8L2r1bzITQfQNFXxs4 mfwKajiIV4xHmcLDsE84wTbo3oAa0vsSoSvnaXgCDvWBOy2iMEAmLJdjk1VdhU0DkIw== X-ARC-Authentication-Results: i=2; 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=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAA0A606A338; Sat, 5 Dec 2026 22:47:41 +0000 (UTC) X-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 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-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== X-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== X-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 X-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 <netdev@vger.kernel.org>; Sat, 5 Dec 2026 22:47:40 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22DDA1F0092B; Sat, 5 Dec 2026 22:47:40 +0000 (UTC) X-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== X-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 X-In-Reply-To: <20261204223807.3920143-6-anthony.l.nguyen@intel.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list