Article View: linux.kernel.netdev
Article #23438Re: [net PATCH 2/3] fbnic: Do not report a FW coredump info error as a parse failure
From: netdev-bot+sashiko
Date: Fri, 27 Nov 2026 09:44
Date: Fri, 27 Nov 2026 09:44
103 lines
11341 bytes
11341 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The fix is incomplete.
--
fbnic: Do not report a FW coredump info error as a parse failure
This patch makes fbnic_fw_parse_coredump_info_resp() return 0 once the
completion has been filled in. A firmware-reported error, or -ENOENT when
no coredump is available, then no longer reaches the mailbox Rx path,
which would log it as an unprocessable message with a hex dump.
> diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_fw.c b/drivers/net/ethernet/meta/fbnic/fbnic_fw.c
> index e00d626f64384..9a3df37674424 100644
> --- a/drivers/net/ethernet/meta/fbnic/fbnic_fw.c
> +++ b/drivers/net/ethernet/meta/fbnic/fbnic_fw.c
> @@ -960,7 +960,7 @@ fbnic_fw_parse_coredump_info_resp(void *opaque, struct fbnic_tlv_msg **results)
> complete(&cmpl_data->done);
> fbnic_fw_put_cmpl(cmpl_data);
>
> - return err;
> + return 0;
> }
[Severity: Medium]
This fixes the coredump info handler. Is the same problem still present in
fbnic_fw_parse_coredump_resp()? That handler came in with the same Fixes:
commit and runs in the same devlink health dump flow,
fbnic_fw_reporter_dump():
fbnic_fw_parse_coredump_resp() {
...
err = fta_get_sint(results, FBNIC_FW_COREDUMP_READ_ERROR);
if (err)
goto msg_err;
...
msg_err:
cmpl_data->result = err;
complete(&cmpl_data->done);
fbnic_fw_put_cmpl(cmpl_data);
return err;
}
fbnic_fw_parse_qsfp_read_resp() does the same thing with
FBNIC_FW_QSFP_ERROR. It stores the error in cmpl_data->result, completes
the request, and then returns err.
fbnic_tlv_msg_parse() returns the handler's value unchanged, and
fbnic_mbx_process_rx_msgs() then does this:
err = fbnic_tlv_msg_parse(fbd, msg, fbnic_fw_tlv_parser);
if (err) {
dev_warn(fbd->dev, "Unable to process message: %d\n",
err);
print_hex_dump(KERN_WARNING, "fbnic:",
DUMP_PREFIX_OFFSET, 16, 2,
msg, length, true);
}
So when the firmware reports an error on a coredump read chunk or a QSFP
EEPROM read, the driver still logs the parse-failure warning and hex dump.
The callers already get the error through the completion. The later
patches in the series do not touch fbnic_fw.c, so both handlers are
unchanged at the end of the series.
Both handlers also have real malformed-message paths: -EINVAL for an
offset, length, bank or page mismatch, and -ENODATA for missing data. A
blanket return 0 would hide useful warnings in those cases.
Could these handlers follow the fbnic_fw_parse_tsene_read_resp() pattern
the commit message mentions? That handler keeps the firmware error in a
separate err_resp that only goes into the completion, and still returns
local validation errors:
err_resp = fta_get_sint(results, FBNIC_FW_TSENE_ERROR);
if (err_resp)
goto msg_err;
...
msg_err:
cmpl_data->result = err_resp ? : err;
complete(&cmpl_data->done);
fbnic_fw_put_cmpl(cmpl_data);
return err;
>
> /**
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/179555657536.7867.497419917946087787.stgit%40ahduyck-xeon-server.home.arpa
Technical Details
Message-ID:
<179577269832.3135.7443187068447815834@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.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-372591-linux-kernel-netdev=dewy.ruReferences:
<179555667294.7867.14016739586914876839.stgit@ahduyck-xeon-server.home.arpa>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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-372591-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [net PATCH 2/3] fbnic: Do not report a FW coredump info error as a parse failure Date: Fri, 27 Nov 2026 09:44:58 +0000 Organization: Usenet Network Message-ID: <179577269832.3135.7443187068447815834@kernel.org> References: <179555667294.7867.14016739586914876839.stgit@ahduyck-xeon-server.home.arpa> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="697648"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+mF3T+0oIJ7pPem0QA8uhlQ2n6E= sha256:OLhtUS1iCfJ654lMV/eWMdkWInaI131H0n+gbkNOwxw= sha1:WeqTwe0g+XJc6ZZJ+eXhDYNEQHE= sha256:AWtULz3dgs/pK6y0gf/CTOLh1Fw1Qs8bb9f1LP0/Rs4= 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 926FB125F47; Fri, 27 Nov 2026 12:45:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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] 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 JxVvDSqoF_xM; Fri, 27 Nov 2026 12:45:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372591-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 7631E125F3F; Fri, 27 Nov 2026 12:45:20 +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 B3F863D81A; Fri, 27 Nov 2026 09:45:00 +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=1795772700; b=RiOvVq2RXLmITcV7UtvUUh4OZHfAkujhy1pj6fC+y4cKDCnQRsFcO3Bi7MFPdMJqRMf5 uEvk+FiKbCWueDxL/nAuUl9pK5PrYt8jf93PwpdXZ+2P3/pDCK8HHkiq7MKmjjlG1iQkK aB62U6eVQt+LOapf5fGU11pL5FaMYBTuraDmCrg0dLau3fPtuSyh+vcVbViumBAuCt+qx WNZoidJWHWnfyfQownup6NuuHv6lWtqmyDJsn1XwPUymFHTAnTZ5HCaf1vZkMfuhjYnX9 8CR+/pLUx/zKcMjO++0ZBEWXvnWU1UCAoSFmCkItU3UQB+eUYELiSeF+GeqZW9e77UA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795772700; 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=3BbzbXlXhudME51VfuDA2IEUZjYWy6JkSVXEoKM4BKQ=; b=dXwZ4G6cXkrrKs049c3hNCBJxYjfDNSSyIA2RcyWWmb0NBfomDSDbvTX7AftS8hSf2Iz Vp7XcWJEmh1L9oXnOdbq3DVPX/u3Mn5CEzACXvwYCtNM932lhiUbhykhsxj5loEeAT/SI vjwbY9+9nxdI2ka0tasDbMw6FeVdqcVgTMP6OhuRZcJxmA8B4f81ziYOnBngbvho+dpKc R30RrFsOBRaB1rxaKXTi3daf0kx/63MHEKZCRyUsiKlKTjJjHg/c6AUGqOALPJot39kvB gXE4ER5OSXBToVH+W8NgPeGTHC0e5CoEpuJDy86OcQ6+N5rhq9mWSWeX3BWfWLdHFsw== 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=k6yRqSAC; 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 8AD47606A32D; Fri, 27 Nov 2026 09:45:00 +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=k6yRqSAC 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=1795772699; b=0IkvjckOnOs64wjg1Qo0YQSHA621NyaBECwZn63eRHFkUiPQU4ZOFdwY+IxPGFYYsWAk +LsWj6d29iE6phdnsQIBUC2ixjTf3YIvUiU3tWGOpvLYGjNpX9cTsOtxYycCJpTpAl3AJ YTMxVR6iBuDdabNXMs64aBn7TE/9ussqVRy0Fy7WZ9SLyUQmzO1ZZ+lrCR4Stj4pWy5Sp eux45lMtxVUEdBnnUtO+Xmac7qMl1uZqtVVcRfMo8ecKTpX0UwIQjnPWBmpMkkbG3tc8F wrsAoTi2A9hduhFU7v7xbb4t5R8p0JEVh5UoKTBwmGgGLbGXEsNeZVGD+OQ4xYUx2FA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795772699; 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=3BbzbXlXhudME51VfuDA2IEUZjYWy6JkSVXEoKM4BKQ=; b=Wox4NcW5tyJU/TbsN/FwSTXO0+wwe1CKY2Hw8/IMfntLTea8UUh0Ain+V8T+2luY4lU7 CpJ49btEL3PBjzPNGjBJlghzv68smsg5FzcN3R3oHTVbasKyFjfo6uVF5AF5xdn66SdZi fzRnaMIOBrxpI3jm5hVlVFWvj7+jXwEV0CZTw5/Qtv6FK+Vy4+Shulk0WYcl2xL3tMUXX fS/Ssm5FHMH4uHM0ozHEYnvPPWdqMCwHLozieFFocGT/ox2ks/OUgBqJlGvypLNPeeSQ5 v8R+w9UHUw7VlsYxublYhtBrZEiUudKXA8PITRancVQG5DJQVaXSJpuWirlfUzfh3SQ== 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=k6yRqSAC; 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 A917A606A321 for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 09:44:59 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C90B01F00897; Fri, 27 Nov 2026 09:44:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795772699; bh=3BbzbXlXhudME51VfuDA2IEUZjYWy6JkSVXEoKM4BKQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=k6yRqSAC3iP0fc3jdX9Vx5Q8SZtz/0IqbYK/rk/b0ForTJt5qgbZqiRH+LLzwyCW4 adjEMkOHGPU9nphzOcW7uBuK0MYWP2zxYY/CPXccR1CBHBj5mi2oqRIIHNi+Ev5Lgt rjcHay0qlhpj4qJowyi/PzM7B7RVE+m0+b8w84U7nS/3SfpiGJDGzEqqw6hBwkklbU dDLD9rKap905rdEmkcqx+pHa3ykglEBwBMuluwc3AgM7N4lqNsghrPDTO7okvlA+L0 hF1csLNIus3Zt+8tIkemAM9rGI68vL25vnZN/v/4ZKwdIYxhyqnBpnqLVHmBDCwpTT FxbePxKyFZPmg== X-Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, horms@kernel.org, kernel-team@meta.com, kuba@kernel.org, pabeni@redhat.com X-In-Reply-To: <179555667294.7867.14016739586914876839.stgit@ahduyck-xeon-server.home.arpa> X-sashiko-severity: Medium 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