Article View: linux.kernel.netdev
Article #8358[net PATCH 04/13] fbnic: Retry the MACDA sync to firmware if it fails
From: Alexander Duyck
Date: Wed, 28 Oct 2026 21:36
Date: Wed, 28 Oct 2026 21:36
41 lines
12600 bytes
12600 bytes
From: Alexander Duyck <alexanderduyck@fb.com>
The fbnic_bmc_rpc_check function clears FBNIC_FW_CAP_F_BMC_MACDA_SYNC
before it sends the MACDA table to firmware and does not set it again
when the send fails. A transient failure, -ENOMEM on the message page,
-EBUSY from a full mailbox, or a DMA mapping error, leaves firmware with
a stale address list and stale receive flags until some unrelated change
happens to raise the flag again.
Set the flag again on failure so the next service task pass retries, and
rate limit the warning now that it can repeat.
Fixes: cee8d21d8091 ("fbnic: Push local unicast MAC addresses to FW to populate TCAMs")
Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
---
drivers/net/ethernet/meta/fbnic/fbnic_rpc.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_rpc.c b/drivers/net/ethernet/meta/fbnic/fbnic_rpc.c
index 0be71e6fd3d4..d69c91066508 100644
--- a/drivers/net/ethernet/meta/fbnic/fbnic_rpc.c
+++ b/drivers/net/ethernet/meta/fbnic/fbnic_rpc.c
@@ -345,9 +345,14 @@ void fbnic_bmc_rpc_check(struct fbnic_dev *fbd)
if (test_and_clear_bit(FBNIC_FW_CAP_F_BMC_MACDA_SYNC,
&fbd->fw_cap.state)) {
err = fbnic_fw_xmit_rpc_macda_sync(fbd);
- if (err)
- dev_warn(fbd->dev,
- "Writing MACDA table to FW failed, err: %d\n", err);
+ if (err) {
+ dev_warn_ratelimited(fbd->dev,
+ "Writing MACDA table to FW failed, err: %d\n",
+ err);
+ /* Leave FW to be synced on the next pass */
+ set_bit(FBNIC_FW_CAP_F_BMC_MACDA_SYNC,
+ &fbd->fw_cap.state);
+ }
}
netdev_unlock(fbd->netdev);
Technical Details
Message-ID:
<179322338727.40667.9687403297682768724.stgit@ahduyck-xeon-server.home.arpa>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353034-linux-kernel-netdev=dewy.ruReferences:
<179322311834.40667.5383039334126572422.stgit@ahduyck-xeon-server.home.arpa>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353034-linux-kernel-netdev=dewy.ru
From: alexander.duyck@gmail.com (Alexander Duyck)
Newsgroups: linux.kernel.netdev
Subject: [net PATCH 04/13] fbnic: Retry the MACDA sync to firmware if it fails
Date: Wed, 28 Oct 2026 14:36:27 -0700
Organization: Usenet Network
Message-ID: <179322338727.40667.9687403297682768724.stgit@ahduyck-xeon-server.home.arpa>
References: <179322311834.40667.5383039334126572422.stgit@ahduyck-xeon-server.home.arpa>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="1874045"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:AQGkDGYXYJE6so7XWskJizzBaJg= sha256:X82s+NF2sBUf73MFkj84YG/osITFG8d7CkuQWTymZRw=
sha1:18PTqjd9MDAPy1wVnonnKsT+zh8= sha256:uyt6+VqW0N+iXGOudhrb++HCME4MyfBbhSHlrnMCFbg=
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 4B983125C4C; Thu, 29 Oct 2026 00:36:53 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
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=gmail.com
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 qhS8ckX2i7ej;
Thu, 29 Oct 2026 00:36:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-353034-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id F3CE6125C44; Thu, 29 Oct 2026 00:36:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 6129E27C66; Wed, 28 Oct 2026 21:36:32 +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=1793223391;
b=INy2Sdq/LKC5bqlXNkzZoW0XhVuwwd06TEhKzBmVtmkKORxERNNLWQcpSedORNuqnvKU
PvbmxjtSTthTd/0fW0CXcyAyOigrnl02VnE7dlmaQQ4pI6OtiRqq6Hka4evTqWxJfp+5e
Lsi2yXA5jWixbDvbkgu8Fl0us+cTrShkH1FpjsAJlgvUhO8RUnP2RhdNFrqPXLHuMciAq
BjzZy2oyQMaHg6TgRB813lP9r/3jASYgLgWxrbLU2C4Yj+qy5HavsRY3zA5rpKdKqaySN
7Z06DI4PuzF9rYlRzLqHIC2cUGaPA4qNzb7Aw3xxZXO/4KbAClG9YURMIft50JUiMhA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793223391;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References:
User-Agent:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Transfer-Encoding;
bh=e/XTEYz7kVYTIlF+0bzcL6qt0pmHhHJHtdLATmxI3Zg=;
b=nRUHFjPGZWqHLd2sZOf8XwoGOad9VorrIBUZr1LCfQMBZHJgQxgvrl6hNMklz/tLUQ72
1PlwfI8F1ET81xDpoYRcMDb5t0uxwEGgiEpMef3aXv1YCkG8zw9aKRccRF8jyI07p6u2V
6XKasmwOKi102raN75PuIxqFYQiIA3Yd8+3k092jihYGiz0ba+uCtdjN9IPzBdEvhREd3
GfOxlIu69zeJ2FmJOIJtI9Ao9UCwYdYbzBV4jHvumX5G3SzJDH6FEhJ1jzLoSBlwr7HQz
aUvrW+l5QIAVBCVMbTbK0QuLpYxy4cPx4kHGnJDrRewkQqiXf3k6JKgVWEX25lMXa5g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=j++Lxnpf;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 D598E606A321;
Wed, 28 Oct 2026 21:36:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=j++Lxnpf
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793223391;
b=oLRr65yJP9NQIAyCNm9hQztmKZ6KHfKtxoMrOAeN+6uiR3Vdx6Ker+H5cv2zhnQGytc9
fJi21ZxKFyRY1EI37r1JAdlH+jc8b50m56olLldwVJipKPgu1aPIesFCksal9qpZSoaul
Af5QFvTQ+LRumuMIhYH/G3aqCWk7GEVAdAPxhHXEvxDDlotZPkeSPM6wrTB8kMR0qY1zX
aSqZd+OmkLbeoj8rXFrLn0dkEjffFDiPWSw1qZD0kFGaCEfcy/gLYMaJ0kdhGAusDXkyn
wfI8Cw6Bw+FbFFlBWJu3G/iomn9qWNRdK6EZ3TMSHqghpmmi9XCQtq3UOCbkvgwZ9DA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793223391;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Subject:From:To:Cc:
Date:Message-ID:In-Reply-To:References:User-Agent:MIME-Version:
Content-Type:Content-Transfer-Encoding;
bh=e/XTEYz7kVYTIlF+0bzcL6qt0pmHhHJHtdLATmxI3Zg=;
b=w29C+EICFPf1GkEKRQe4hcwm5rSLRC/ug8nSSjrG1sIF8GWj7fTRCGrdEw5yLOvi1FCB
woAzkixKOBCack/DK3K10DYxsapWhyK8/11shVlR+GNXOGrosGUXVaX9XV/g2zKjBzvzF
nSEgAO6HHG0mFH7+EvPSq5zEdtfyOKjfhOtFhMryXNhTv3rLsN5vpVF4Z317Elxkz1bi3
my+0UESW27W8ufeYLrepFg+k/Wd44tIG1LGseCdZOQIPH+IbZDRUHDbprR5dlNN1i410C
flbcJh63+NbOr3kjhwdvh+qzdEIyMx21CJ7Ojd3YM9hJFSwnCOdHnCewTD2GR/IeplQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=j++Lxnpf;
arc=none smtp.remote-ip=209.85.216.51
X-Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F4B9606A31D
for <netdev@vger.kernel.org>; Wed, 28 Oct 2026 21:36:30 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9F4B9606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-3adc4590de4so1260204a91.2
for <netdev@vger.kernel.org>; Wed, 28 Oct 2026 14:36:30 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793223390; x=1793828190; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:mime-version:user-agent
:references:in-reply-to:message-id:date:cc:to:from:subject:from:to
:cc:subject:date:message-id:reply-to:content-type;
bh=e/XTEYz7kVYTIlF+0bzcL6qt0pmHhHJHtdLATmxI3Zg=;
b=j++LxnpfW56uvTVD2YRuPwpxPgQjZiYij4eH41Z4xfdi7MiYR8ucdBq9lTsCbs2RWh
76iX7TrnjNCnIpzuGnO3sOwpDQanVf5wQyByWXt0CiEsHL+s+pQ+mVN6n2vBFyPHdStR
M7cBXGVfqpckefSV+aJndLxnTSQLzBvdhPnKIBQnyBT2f23qPfJdu4V8O/UwsRvPXf5N
QUOlyeXQNM+i6Sog8YHx0yh50nm1iEei0aXLzxCU/Khv9sljSBXLqNaZwXXe/bVdhANx
hXFre9rodkrgN0ed6CMrZpwgccuOblQa+vX0bkFHeaqHesQnRCJ6LxYoaalRXHXQ6gRs
z+qw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793223390; x=1793828190;
h=content-transfer-encoding:content-type:mime-version:user-agent
:references:in-reply-to:message-id:date:cc:to:from:subject:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=e/XTEYz7kVYTIlF+0bzcL6qt0pmHhHJHtdLATmxI3Zg=;
b=C1NFNF/WV4VNOibqyXTdAMHqehdqNTbIB83bjBrrH8RJxryUhHKB4fI1zma6KO34Kz
XFrwRPEyLFVUXC9MDECxnBoKCShnnSpwnjikN+lQixmbrxP0IewxTjDOVSHsOtruAZ0b
U4xqJ/Xe6xDWdhwSfiJpPvHmWEyipuGL5d9PyiJ4qHcy24RXbz+tJ4fwRU8C1WmbgRTG
Sn1+jPwmuYakIueYKZIpT6qi/x3ejYHCY0DQTuDEa6KViyLzsKq1HR80pNbN8os4uacC
+vXuAtpaq/fQgbs+Qua6OlPRnx2d4d85qogc0ETISwOUl4ZMbFsken1BmztIin5ZjvlF
waIg==
X-Gm-Message-State: AFq9FYKDgFksTfRlDfNPa1/Rf1sqfvtc2PwpqiB9pS8otEyATnIf62+c
4GsrX9A8gYA4q+MWMzmHFs6v8SVJoYsdbaZU4SdRpCdYXY1jaNcvweKK
X-Gm-Gg: AYBFou2PDmWd+64aQpZJ40jrV2M0dVd9BrrY/hJ7NDIQbgqlHcmV4zrCWhuFLEmH5rh
ySm8JCC/UIUkC52Mt6k0ZwEktmnzVKPwsdKdKIjMxFkJJv1SkPFVMEtGXwNm4Cji+xJJAG79EqO
omgl4rG8oIIVKQDRZB8b6p0FjVU74pX6mYzrOp7G/+vrP0I06xDy8yzqh0q0rJ6fV+pGTUojA3S
nVh81Jjem02LFo2meL24f9sp9rchkbS8fwSqQ4lnBIdhREorqF8/W2mESmsD7d9Gua0udt8qAia
MINZYiwhjm7n2UAK1LLsxpNCOiioOI4c+CYsBjzxEN9lYEjHZ1vXjf5M6s9lm43x5iqEe3QiQ6Q
0MDPvy0VWFpA8KdHRr+c+7m2NrXTU8Vm/CpphOt7hFYj7lBV1AtJfOecMLru5uEWwrTQdAkPDSs
F8vq9wlynNIdJeHIiBeMagyh+vaUJyUZ7kmSTlZ4zUT2u/bD+mYNT41WVpOZVVseXt89zG2f64w
7iB2Us7HVCZ4iFqOZxV2wIX3nI9ODTZ6y/N1GcTgdmmT30puKmxI78SXYXqqZ2g4qi/wipXVqXu
/97m6L85Uei8u3CEPOtcWIih54p1CRlCkxBcjg3rELGfX5NJ/6S3ktLGEG0iAh5n6zPCFfHKTYa
PC8ufcF/y6NVB4SztD/Gk+PATAmZ3sASsayiwiyLuMcEoBw==
X-Received: by 2002:a17:90b:1343:b0:3ab:2236:6b3d with SMTP id 98e67ed59e1d1-3ae5822fdf8mr2617254a91.27.1793223389939;
Wed, 28 Oct 2026 14:36:29 -0700 (PDT)
X-Received: from ahduyck-xeon-server.home.arpa ([2605:59c1:38c:400:22f5:2de:b9c3:f27c])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ae6e7ac878sm1057973a91.4.2026.10.28.14.36.27
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 28 Oct 2026 14:36:28 -0700 (PDT)
X-Cc: 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: <179322311834.40667.5383039334126572422.stgit@ahduyck-xeon-server.home.arpa>
X-User-Agent: StGit/1.5
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