Article View: linux.kernel.netdev
Article #20747RE: [PATCH v8 net-next 6/9] net: dsa: netc: check return value of ntmp_ipft_delete_entry()
From: Wei Fang
Date: Mon, 23 Nov 2026 06:27
Date: Mon, 23 Nov 2026 06:27
181 lines
24114 bytes
24114 bytes
> > @@ -1880,32 +1874,36 @@ static int netc_port_add_host_flood_rule(struct
> netc_port *np,
> > return err;
> > }
> >
> > -static void netc_port_remove_host_flood(struct netc_port *np, u32
> entry_id)
> > +static int netc_port_remove_host_flood(struct netc_port *np)
> > {
> > struct netc_switch *priv = np->switch_priv;
> > - bool disable_host_flood = false;
> > + u32 entry_id = np->ipft_hf_eid;
> > + int err;
> >
> > if (entry_id == NTMP_NULL_ENTRY_ID)
> > - return;
> > + return 0;
> >
> > - if (np->ipft_hf_eid == entry_id)
> > - disable_host_flood = true;
> > + /* The command BD ring is always enabled here, with the ring
> > + * enabled, the hardware completes a command well within 1 ms,
> > + * so -ETIMEDOUT cannot happen here. Any error therefore means
> > + * that the entry has not been deleted, so keep tracking it.
> > + */
> > + err = ntmp_ipft_delete_entry(&priv->ntmp, entry_id);
> > + if (err)
> > + return err;
>
> [Severity: Medium]
> Is it safe to read every error from ntmp_ipft_delete_entry() as "the
> entry was not deleted"?
>
> In netc_xmit_ntmp_cmd() in drivers/net/ethernet/freescale/enetc/ntmp.c,
> the command BD is posted and the producer index is written before the
> poll:
>
> cbdr->next_to_use = i;
> netc_write(cbdr->regs.pir, i);
>
> err = read_poll_timeout(netc_read, val,
> (val & NETC_CBDRCIR_INDEX) == i,
> NETC_CBDR_DELAY_US,
> NETC_CBDR_TIMEOUT,
> true, cbdr->regs.cir);
> if (unlikely(err))
> return err;
>
> if (unlikely(val & NETC_CBDRCIR_SBE)) {
> dev_err(cbdr->dev, "Command BD system bus error\n");
> return -EIO;
> }
>
> When this returns -ETIMEDOUT, or -EIO for SBE, the hardware may already
> have done the delete, or may still do it later. The comment above rules
> out the timeout, but nothing in the code enforces that. There are also
> two command rings (NETC_CBDR_NUM is 2), and the poll is a fixed 1 ms.
>
> If the delete did take effect, np->ipft_hf_eid would keep an entry ID
> that no longer exists. Every later delete of that ID would then fail on
> the response error status check in netc_xmit_ntmp_cmd():
>
> if (unlikely(status)) {
> dev_err(cbdr->dev, "Command BD error: 0x%04x\n", status);
> return -EIO;
>
> Wouldn't that make the failure permanent?
A timeout error will only occur when the command BD ring is disabled.
Normally, from a hardware perspective, the execution time of a single
command BD is far less than 1 ms. Therefore, there should be no timeout
error. Otherwise, this is a hardware issue. The current interfaces are not
called when the command BD ring is disabled, so there will be no timeout
error.
The SBE error stands for System Bus Error, which indicates that the current
command bus (BD) failed to execute. In fact, if this error occurs, it indicates
a problem with the system configuration; all command BD operations will
generate this error.
In fact, netc_xmit_ntmp_cmd() should not have any errors; otherwise, it
indicates a configuration error or a hardware issue. Checking for various
errors here is to prevent misconfigurations during development from
causing unsuccessful feature setup, and to verify the hardware functionality
of new SoCs.
Therefore, for verified features, netc_xmit_ntmp_cmd() will not return
errors. Otherwise, it indicates a problem that needs fixing, rather than
an expectation that the hardware or software is still working correctly.
>
> >
> > - ntmp_ipft_delete_entry(&priv->ntmp, entry_id);
> > + np->ipft_hf_eid = NTMP_NULL_ENTRY_ID;
> > + np->uc = false;
> > + np->mc = false;
> > + netc_port_wr(np, NETC_PIPFCR, 0);
>
> [ ... ]
>
> > @@ -2099,6 +2109,8 @@ static int netc_port_bridge_join(struct dsa_switch
> *ds, int port,
> > struct netc_port *np = NETC_PORT(ds, port);
> > struct netc_switch *priv = ds->priv;
> > u16 vlan_unaware_pvid;
> > + bool uc = np->uc;
> > + bool mc = np->mc;
> > int err;
> >
> > if (!bridge.num) {
> > @@ -2110,6 +2122,12 @@ static int netc_port_bridge_join(struct
> dsa_switch *ds, int port,
> > if (err)
> > return err;
> >
> > + err = netc_port_remove_host_flood(np);
> > + if (err) {
> > + NL_SET_ERR_MSG_MOD(extack, "Failed to delete host flood
> rule");
> > + return err;
> > + }
> > +
> > netc_port_set_mlo(np, MLO_NOT_OVERRIDE);
> >
>
> [ ... ]
>
> > @@ -2123,8 +2141,6 @@ static int netc_port_bridge_join(struct dsa_switch
> *ds, int port,
> > netc_port_set_pvid(np, vlan_unaware_pvid);
> >
> > out:
> > - netc_port_remove_host_flood(np, np->ipft_hf_eid);
> > -
> > if (atomic_inc_return(&priv->br_cnt) == 1)
>
> [ ... ]
>
> > @@ -2134,6 +2150,11 @@ static int netc_port_bridge_join(struct
> dsa_switch *ds, int port,
> > disable_mlo:
> > netc_port_set_mlo(np, MLO_DISABLE);
> >
> > + if (netc_port_add_host_flood_rule(np, uc, mc))
> > + dev_err(ds->dev,
> > + "Failed to restore host flood rule on port %d\n",
> > + port);
> > +
> > return err;
> > }
>
> [Severity: Low]
> Should the commit message also describe this change to
> netc_port_bridge_join()?
>
> Before this patch, the host flood rule was removed only at the out:
> label, after the join had succeeded. If the join failed, for example
> because netc_port_set_vlan_entry() failed, the standalone host flood
> rule and PIPFCR were left alone.
>
> Now the rule is deleted at the start of the join. The disable_mlo path
> then tries to add it back using the uc and mc values saved on entry. If
> that add fails (-ENOMEM, -EBUSY or -EIO), the port stays standalone with
> no host flood rule, np->uc and np->mc are false, and only a dev_err() is
> printed.
>
> DSA does not call .port_set_host_flood() again after a failed join. So
> the port would stay without host flooding until its RX flags change.
>
> The commit message covers the delete-then-add trade-off only for
> port_set_host_flood(). It does not mention the bridge join reordering,
> the new restore path, or this failure mode on the join error path.
>
I think the current commit message already contains the main content,
which is good enough. There is no need to describe every detail.
Technical Details
Message-ID:
<AS4PR04MB93381DEAD9CDB1718F9DE28688452@AS4PR04MB9338.eurprd04.prod.outlook.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369066-linux-kernel-netdev=dewy.ruReferences:
<20261119030534.1892935-7-wei.fang@oss.nxp.com> <179541033709.3135.10401749390258091680@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369066-linux-kernel-netdev=dewy.ru From: wei.fang@nxp.com (Wei Fang) Newsgroups: linux.kernel.netdev Subject: RE: [PATCH v8 net-next 6/9] net: dsa: netc: check return value of ntmp_ipft_delete_entry() Date: Mon, 23 Nov 2026 06:27:00 +0000 Organization: Usenet Network Message-ID: <AS4PR04MB93381DEAD9CDB1718F9DE28688452@AS4PR04MB9338.eurprd04.prod.outlook.com> References: <20261119030534.1892935-7-wei.fang@oss.nxp.com> <179541033709.3135.10401749390258091680@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="3807253"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:R99xgPUk1Qt285ScXHa9RIG3Dxo= sha256:KbwvCKuHS+dTw2REOOCKUcrvlZKg78OUybBB+otna28= sha1:zxymFwv+/rsG1O58TeNimzuODlM= sha256:G26WIYozm3sFi3BrxucEltbaysH7yb3Es2BO5UprV78= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-MS-Has-Attach X-MS-TNEF-Correlator msip_labels X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 06162125D8F; Mon, 23 Nov 2026 09:27:27 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=nxp.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 XHJ7NxeT-oTV; Mon, 23 Nov 2026 09:27:23 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369066-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=nxp.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id CF82B125D8D; Mon, 23 Nov 2026 09:27:13 +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 D13BB260E3; Mon, 23 Nov 2026 06:27:11 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795415230; b=lvnkhovHxU9a8Ou6uqms/6x8hqSbrfFyUb/FhYxlyANlyrl5etSeEnYuWxiNAXe16/eR Lw69FmfVA/zQsUqDb84mZ0vsbY6G4gtVysoyNBh9591CjWqJkUHapXt0dUNwvKuWqLNC+ eT4Ug3Sz6YheOAMiLD3Djuwsxsb1/4gAQV8CSbz8NlhCUNpw+g7B6JUql9PNDQ8IqH1wF gxc2oM8zrOrLglxy+v5/XDPt0CfjMA4W9wSTtAEpoL8LyebTOAvVaWeiuZSOsGtFeuEte PQ2uFatqBn5Qr/8de+o43EU5TNo5m0Dn5hK+Bgh4HHbVjjdZCt3/ELZf2e8YUgIsttw== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795415230; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Received: From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:msip_labels: x-ms-publictraffictype:x-ms-traffictypediagnostic: x-ms-office365-filtering-correlation-id:x-ms-exchange-senderadcheck: x-ms-exchange-antispam-relay:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata-chunkcount: x-ms-exchange-antispam-messagedata-0:Content-Type: Content-Transfer-Encoding:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: X-OriginatorOrg:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=YRdDH9kINoiz1JaQ2w81t5CpHPQmhGNSBVjX9i/KTqE=; b=T0bRzDvp9v7FvVZOA+c3EJd7kOJSdvOVtNOwWChVhN5b381g5kuhpQr/tnP8iZeHL4bZ 1/43oMCZdeY2z6DjMYvB4UdxP+LQu0PgXAQVBDtsezp9Nu9scbmYT4lI1GBlBzoWM2IZs uMdPhu8om1EsnDGbP5iAHCqwqpQb4k9iWgm8DrBbjCSe6lELQGhPyJsvxR7c9/LHIdGUo GAr2Z8nb/LRujTaKEUUHz+xUfZ+L8iqH0daAdLf5D+3kuP4QHLxE4AAazxmXwDYCJfeqp WSAYnlggWeDXCn+tMp3AHRknG/CeEa/RbvKQ8PkX26r/c9wn8rr91ESFpETIyzRz4Ag== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=k7DoTlQY; dmarc=pass header.from=nxp.com; spf=pass smtp.mailfrom=nxp.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 75221606A32D; Mon, 23 Nov 2026 06:27:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=k7DoTlQY X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.65.41 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795415224; b=H1dimH7Z6Wg/RdAHAD+wJgd+JfSGli10MKyqnch2ZOdsjo6je7+lXkCmvPv09nC9oXNf bGY4F2EedGryJuglwlvAvVufjhMrDhr1HaxgnYTG31Zedu1h0xFH6O+AdGMRyYP9QLIU5 aif5FctYcd3FhVRFdu7QwoHm5sFbqdA00+66mZmJ5BDfclS7SSGJ+cWFnPi5kluSzMonM uotMudzoCL5c7pjkHTAM6ZSacCfNniWkZWu6KLr89ccjzG0ALzYfc870m6iaOqrjUABI+ Vu8lUi3CqGgG6W3j2D7l+LoTjleLsmy1bIcOjGEp0dtCNbT4aqlJJ2c/8UNT/PWnX/Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795415224; h=DMARC-Filter:DKIM-Signature:Received:Received:From:To:CC:Subject: Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator: msip_labels:x-ms-publictraffictype:x-ms-traffictypediagnostic: x-ms-office365-filtering-correlation-id:x-ms-exchange-senderadcheck: x-ms-exchange-antispam-relay:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata-chunkcount: x-ms-exchange-antispam-messagedata-0:Content-Type: Content-Transfer-Encoding:MIME-Version:X-OriginatorOrg: X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=YRdDH9kINoiz1JaQ2w81t5CpHPQmhGNSBVjX9i/KTqE=; b=jnQQnp9SRUhPUYsm/GcCbrSpSGp6ifo05vyaGO4ovhvhfvj71xAoDler7Jmcpfmy9MPv xDCyuoBPYDrdbdk21IGbG8OweArzVkm33g6pRKVe+2nyQqfjNPvlaaTF8gD/jYCimwDwm pDbvIxXxHuRTtEpLpJOt/48Af4nIf0d6zk1FCwcMdvHLwWDU4aJ6TvtnpcyjFFaB5icwU 2kMKVm6khcKTonTHL0S3c7ikHqhTDDcZbyA0EvhELyFcce4+FoTV7n4Wy4yLSfWXNahHY 4CdPd5VkWbiPbBxKZqNp24UmGQ7l/vc+Kw0Y40u2ngQb56ufeaa32PGkAhGuDlOdSIw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=k7DoTlQY; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.65.41 X-Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11011041.outbound.protection.outlook.com [52.101.65.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3591606A31E; Mon, 23 Nov 2026 06:27:03 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E3591606A31E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com X-ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DmS9hATEpacVtJ04ZmDf3Rsy4Ze3U2GwzdX53dEv4TYDW2cl8/43OaQH5aI2Zoxzkfks/55iiHFlgk33lpRjUUcS8SaQW2+bDzQdt0JoqKGRxAO3YRyru38aGDvo3N8NhgsqqPBQ0jFVF4RLQ2BEhWuVyRnQ8ZffibqVlSCnGrH7UIRXpGXkZCmuS7gJ6c08n3R0MLKK6C/QmflNtrt7RLmB/E9b4oAgK7FETf1QHw6ralcsq1Hg1HzYGOCyJE1fPt2Ru/tMKjfodxLc6OyXUj17Yt0e+tDjC27qoLgYA07vCk3SpfiCJ0Zwoephc4B/IdAu/PqDGqdNDIuReZWwZA== X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YRdDH9kINoiz1JaQ2w81t5CpHPQmhGNSBVjX9i/KTqE=; b=IoU7MDvyerZUzHvF4CCnK0DefVtdn84tSg23hWpL/h3HG1q0UWGvekEYh6O8HAchj3dg7goBDfr8rSQaS9e7YRokROdW/rDDlGS8/S+yTs0narPKxfqkosjuvzxYiAFX8r2SS97Fx0JZBRmYxWBU2Jag7SHrAjxC7oDQSCp7YpGqK59w+e/tVIyys7PnekBd9sKlkdVvKMhWRnQPx1EYanDZBmJuYqMIw/E6V0TemEdErppsuYXScZdB1c8mJBcGHH0SkgPJSlSdd1DAGQv//zZ00PxOHC0mlTdCInsVQSrYYVSzgH+NlaQfCQPGDD48zOfOKVXV1OErvZ3FGSP8Mg== X-ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YRdDH9kINoiz1JaQ2w81t5CpHPQmhGNSBVjX9i/KTqE=; b=k7DoTlQY37nb9Lfr7qiIo7tishrh5pKSC/rDv5t2PptvdnJx9JxzV9ho+pEd2nDoJHmHnM4VWYnQ2pMPv7uQTT/8i+x2kQwKgTzidFJMBXrRW7jhcmIVoEVX4eSnUsyK0sYXmpiRhSCJcX/rLTXylIa/zr6/Apo+jOVRD2Y2pu70Koqt6KYrHa8XDiRBhXb5DJeBWXzoNnxz5Gff3mOuIIKKrCyIMtX1n317QDR8YLVLW8gC5piZaaCpADoCXo2rvEN5EG2qTZuVCVIiHUx/JPMS+wW9tBCCF4Bph81y7HMYtn1hjG9fFLxoml+s3o7+L7EuVKfZIOR9BZI7JRWMfQ== X-Received: from AS4PR04MB9338.eurprd04.prod.outlook.com (2603:10a6:20b:4e6::17) by AM7PR04MB7189.eurprd04.prod.outlook.com (2603:10a6:20b:116::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.639.12; Mon, 23 Nov 2026 06:27:00 +0000 X-Received: from AS4PR04MB9338.eurprd04.prod.outlook.com ([fe80::7c4c:9c56:8552:f680]) by AS4PR04MB9338.eurprd04.prod.outlook.com ([fe80::7c4c:9c56:8552:f680%7]) with mapi id 15.21.0639.012; Mon, 23 Nov 2026 06:27:00 +0000 X-CC: Clark Wang <xiaoning.wang@nxp.com>, "andrew@lunn.ch" <andrew@lunn.ch>, "olteanv@gmail.com" <olteanv@gmail.com>, "andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>, "davem@davemloft.net" <davem@davemloft.net>, "edumazet@google.com" <edumazet@google.com>, "kuba@kernel.org" <kuba@kernel.org>, "pabeni@redhat.com" <pabeni@redhat.com>, "horms@kernel.org" <horms@kernel.org>, "richardcochran@gmail.com" <richardcochran@gmail.com>, "linusw@kernel.org" <linusw@kernel.org>, "linux@armlinux.org.uk" <linux@armlinux.org.uk>, "imx@lists.linux.dev" <imx@lists.linux.dev>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> X-Thread-Topic: [PATCH v8 net-next 6/9] net: dsa: netc: check return value of ntmp_ipft_delete_entry() X-Thread-Index: AQHdd9I9xYE739+Y9kiAvP2UpdxZMbc7IOmAgAAP/PA= X-In-Reply-To: <179541033709.3135.10401749390258091680@kernel.org> X-Accept-Language: en-US X-authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR04MB9338:EE_|AM7PR04MB7189:EE_ x-ms-office365-filtering-correlation-id: c4f66c5c-5d05-4606-2d75-08df492ac81a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|19092799006|1800799024|7416014|376014|23010399003|366016|22082099003|18002099003|6133799003|261009223027099003|3023799007|4143699003|10067099003|11063799006|5023799004|56012099006|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261021123027099003|261021121427099003|261022105027099003|261022075727099003|261022113327099003|38070700021; x-microsoft-antispam-message-info: R8L3xtmasCyXpvn7DKt3Svxl26c65IppuHNrmrdDx+LuzPC/Y+ANJxL2KiV3xI+mjkXOa4pVb9HyLrl+jKCGjGN2U4aKHZt7XWjiqTuJwXw90Gcap3B5XhFQGamZz7QK3DVe6WHf/Ctv0PvHi74jz+cZGBVttpJWWw/I+Jabsm5Yw0F7l3vQ8BM8oOepzWNM8OlUXRKlTf+5gclo/84tMHzOkzlYI73LAQnn/jlpOlcKCHcYHWGEzPvczVCRiwNAlkNzZvQaQL3JXstm1z0bMcfLkELMBA1gDab8Vxc0Yr1xZihQITso9XQQlQSjNvEHb9yXppEASr4XAZwSRo6UE3WySSwtCV4//RjGUbVE7/gETDcxqXdvLTUK25QaLVc3yQhXd0syGgNvfFbaqh9Peibkq0l1qN/Lz9TBzXxPbkHzQju+phjh3szQr/xT3gBjLN8jKn5ixoBggWi3KxM1/EhwF8NLj9vabUcJ2ZQ20kuXZYlXUnplAQR6wiKGHk4xc8skNrw7vbg8Sw9Qfcf82w0ZbR95vLlgpk0aoKwqXnDlgGPfMiX0whr/MFM92Y/tuRlXGIQnnGgvb/a8XCLXyKshw7jf5ewlkpB06vV4oRfWRsxs3bcYuyO/CrJ6TR4jMzuPSBAFExSqAQrYhdj8PCNXtAs89CQGlDP3+bMbr5eEP2mfBWzpsC/wqv1d6DzGHpclu5nRIxyWzNdVjbQOOo+CHlAxLCqf4MvnlN4xbKs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR04MB9338.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(19092799006)(1800799024)(7416014)(376014)(23010399003)(366016)(22082099003)(18002099003)(6133799003)(261009223027099003)(3023799007)(4143699003)(10067099003)(11063799006)(5023799004)(56012099006)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261021123027099003)(261021121427099003)(261022105027099003)(261022075727099003)(261022113327099003)(38070700021);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: ti0IClpUY8eeti32WcTzjaRrh10FbflIdwkaHXu7HbSsHPdS69WivSs8baeNk7XZMw9PXsvNYktRxNJ76qJMimL7E1aQ22E12faAdWX4iU0gUH1civ1JVF+tfkC7HLdf5oWrKhdCrD8knO92CUii3lca7H/8WUSpY7dhiH/qy8q3yZvg9VI/U6I4jUbCzFlCuyNqV46/XADJwiXcSqEO22PlsjdBz96e/NSG44URAss737ZQomTB0GpUEGlYuL1BeIVovX51NgApqw66GbYrbCU+HQGh5HkADy6aw0QeOjA86aMIai0NCOrX0Yyh+ENVONeQVv29Z0imf2KxIZK1E+vOfkYBw8buhRXrQep2QA0fNpJf2HY4OOYiol2Eg6/5h4+XOm+WLVJyrfiYI8MHLi8uBtpiHMScqiiJf+yVlhsxWKrlwwEKzsayqgFxcJifDYEyGYzcu74LYLiZw1cFdH90l6Ng1fj/bJZdy/ecU6R92jeHYDLxBKj7MrgIaxXLCpAc5gsyj5d/Z4cWzKv/B2tc39nOmjqKFcwHe2V0gYDZPy02GE8hFSKgdQ3Yqc4amhLyJFlyc+RRmKm1VboV68efywlGO9E9KWvB29G0JVEpyIVhbq+fxkXzadgezrGoeVabKaaWBK4bROo+9qWvTweEGY39O5sMS3HySBbSoPH5qQfgmUbEznpBId+sIs2UOnARL1NoXlUHhGi5dHpBe+bw6KvP24+QZauerGGoLaUCE95fM7HxISb0EDJ2lyTiYhEsHdg/aznqhk1ozroH/t6mkqT16Nq3QjtYnzWWqMQsv9pOX8sjTzDk+BahoGi6YszCSsJw2KdkyPidRlD4xxqQu0tEr5o0U7kyTUmHbVSv7YW+4mmL2yMPvqM0Ngq1Q2+SDprKn3JqnwnFQpHsRrUiPKDECzBRQCtNtQvkc4QlpQATObsYFfuNdX8IpyI0hwguIraIiVz+9KgHDFQD2TZj10U2gEZZ1rT12SgNJNEuiuwVJkW1drljPsa+Pg3aIuZN4XlZrkRxxkA2hDjrpuyysXEY6hryIpu+lJHMyOzOqEwa/sdBPuPUGaUfJ7apaApNvx49QMB3VFDXM8v909pS8q0QKnd/9x6PGg72cRsAFuB9u2bJBBK/AkWweYpf2QYboNxowLOvv4BOrp+O1KEN4X4HtbsD72aukX/CCesbsPjIFbLTmRv1PTPOciukf04ZhY2Z6uxaDivOWeIbIGC0kXl5JlNg4A3pDkFSO+X415AV/98zWoGQVbjptWdXYbbEvxgPaPW1HZqjZy7doGvz6vYZbMEB2NX3QAuwp3zpTF2BO4gB/lZb/cuOdCqB8WMbOk/Md/1MxDBLaYieA51QYigNHutS/OlI0wDztSxr3Ev/E606jA1Y2sLtBDyGqO7N0vp+A0ji168KOZqlFA18C8Gdoxa5vGRUj4QwqyqGrWeDF3vPQMqMUMnWIrkw65BFy/xWKRCiz1HAYEfKQWYuQxU77WRgm0NcVVK/5x1r9YmalvxXcbmjHFW0aHmoURhCFvfirGLYh+9UMjaHAQ+tO57hEnwDcpkEJEvLpFOQ92A6/ttw3ATW9GAc2RlQ6wEKlYa+CGn5jithihYaRbLJDR66aZE8uGk7jTmCFbEs57QWJI9kqAp2tYCmMuwJo3IaQ2cYel+3q2vss3AJJtWOwqqYJSr2r9yJmSlZ6FK2uUOLyh6b9fkE7hsWMTd7 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 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9338.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4f66c5c-5d05-4606-2d75-08df492ac81a X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2026 06:27:00.4481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NFW7j1tCWV9HnEa+5uQQE+99S8Pyohl/euDKc6fqKfMzW/s6JVq42JoiSKjMdxsQzYkyuNq7ieB4zg6GsDdvLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7189