From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6109606A681 for ; Fri, 4 Dec 2026 07:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=TwqK2IW+; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=ljoyBY5Q; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-NXP1-onmicrosoft-com header.b=tSOU4XIu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=8AJeMBffI1oru/lmfdu8O59HpLXtaYwDqe4/tv2tO/w=; b=TwqK2IW+4C0j6G I2rCfzJ6XYKcsK8GBFWVI2tY+yBJJd0zEC2DRE19bAn+jyAHcynWAOcIG9/VODtsyY9Mtg1B3SY0w l4qb02xgGEirB3z8cuj/w0Vv/3mKR0NCs+VKf9tzDNqDrQCj/TwS0mT4ZJiXRrXOX0WT4PErcW5JM 3kqjXOr0GFRaPvu+3ZpcrRjoNX4/H58nW3AJ6+TLx7vjAr8kOLoMoF/DepMGsQBVcf9qJKAI496s8 WCl2U37hhAptozg7bfsUL7IQ+zT4zzGPaiexKZFgzC+HnNWdDWGiU6a2zUlmfNOGYfmgGCkdPA3I8 0gnypq3XDS6XX8ahB6xQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNRC-0000000GspL-19KN; Fri, 04 Dec 2026 07:10:34 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNR1-0000000GsiE-1H6P for linux-arm-kernel@bombadil.infradead.org; Fri, 04 Dec 2026 07:10:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=8AJeMBffI1oru/lmfdu8O59HpLXtaYwDqe4/tv2tO/w=; b=ljoyBY5Qs31dyI/dZTDCWgJs/+ KZwf/tiwnUS5dshxuMhAEspSoo+LHvAM62pzuMKG+LiGds8Uadqx2E7ZFi0jWjewTCiepvoEzz6B5 W7RPhmgzoON3THBu8AFXNyTai9UcIl43KzcET+LprMBRhvjNsND9VhEVTZMmSOSkIgO1fFi/xXkSt /IDNNCxoR4tAQM/McDPpAVstkyPL2QOWJEAYrE46TghrmqakX7dkwrQEgmWSVCqAR64DxYAcZPTzy zZx0WGqGQUBSxUgWom2CVozjctPCW4qKNHQcwMHg2mZMhyJ94SHMqrPWoQ2PwTWtQjZeX//a2SFvk /90+tB2g==; Received: from mail-westeuropeazlp170130006.outbound.protection.outlook.com ([2a01:111:f403:c201::6] helo=AM0PR02CU008.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNQy-0000000E5g1-2FDN for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 07:10:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ai/m+D1jHrCpaB+EcQa8lDl4AFiNWgBLcoXi2TdnuG0h6HtvrQpEUKFiBMZSrkrgIuhoIoS34KAe3AmxMXvZKZnLF9hro3IV0UJQaZTPHa0fmKCaBPwvSimq8D6B7aIKmMt9Psd2jbdCujbPkbOgetfTRb2DaRFvqoKeN5RwTBR9VCQpPYJ6zV7qus0G415ZM3P5j+xPnrI2+ZgnpgqqzV20RiivePocubuoTJ9gfOKiw1ai103ibbDJmxO8LgUW3ymCX8q0rbggJh+IgoxRpY0blxo+bLppzmaw0J0qdkr4PkDII44hxYuKJrkGuLrVlQQVgwsu+1j37d1JoL7EEA== 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=8AJeMBffI1oru/lmfdu8O59HpLXtaYwDqe4/tv2tO/w=; b=hW74o4/iHq2jC6FhEf8a3nKtoD1talTb1CMTVPq45UThbaddyIrQX8k0eFVKaQ+zzxAikpG0F84lg0+eMq028APzFibPPFKTuOD91t5J5FSECUYdZyBVH5NL9TsesKVJbb0kjjzk5te4NZzlWpKbs9A3xeCtNHsE6Pk0DHqwlYIPvQhOjAV99iErxTU2gudZGflJ+D1JTnElrzJiNPzATZF9InGRD+W3KFZYiDMQEBfXOWbfq6prCgnplNDiiZCssl1TIWNunYHjR037ogDp+IeJVbgAubx0iI6pZ9xiL1amQfsTAxCN4meC9wv6WlyX3aHLZNbmAIIRL67ciFvPSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8AJeMBffI1oru/lmfdu8O59HpLXtaYwDqe4/tv2tO/w=; b=tSOU4XIuGixCtpO8HjWv2gPqaUJgzTUbrbO8u15wlRzPKg3cjvdDGBEcz2VncIxjtLlGNvYOhIPap7NFYUY42v7jO73cunaXg4ShrnakZTItgFy4W5TBSI3xlo2aTABHcEQL+49FasixWr1/poOlYQnmXuVT8vI3JT2oruGyWEqhVLA+9SkNyYCzxf+bs2l/W2UnK+N86EWCSC1Lgc+cLXlJY/HVpdt3Z7deGeR5CHKZWLzTdrh7AyrqB/R3EONCkr5n4Vspvop/gLL65HCIZ3wsgQD4YsSbemWGwx57Wjnhv5mo31phFqiXuW56cNQfRMgThlz+KY+zdFpK/zbl2g== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VE1PR04MB7216.eurprd04.prod.outlook.com (2603:10a6:800:1b0::22) by DU4PR04MB10551.eurprd04.prod.outlook.com (2603:10a6:10:588::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Fri, 4 Dec 2026 07:10:16 +0000 Received: from VE1PR04MB7216.eurprd04.prod.outlook.com ([fe80::a9a5:cf83:dbe8:1f74]) by VE1PR04MB7216.eurprd04.prod.outlook.com ([fe80::a9a5:cf83:dbe8:1f74%6]) with mapi id 15.21.0688.009; Fri, 4 Dec 2026 07:10:16 +0000 From: wei.fang@oss.nxp.com To: xiaoning.wang@nxp.com, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, chleroy@kernel.org, richardcochran@gmail.com Cc: wei.fang@nxp.com, imx@lists.linux.dev, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 12/14] net: enetc: convert ntmp_ect_update_entry() to the generic update helper Date: Fri, 4 Dec 2026 15:14:08 +0800 Message-Id: <20261204071410.692071-13-wei.fang@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261204071410.692071-1-wei.fang@oss.nxp.com> References: <20261204071410.692071-1-wei.fang@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0016.apcprd06.prod.outlook.com (2603:1096:4:186::22) To VE1PR04MB7216.eurprd04.prod.outlook.com (2603:10a6:800:1b0::22) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB7216:EE_|DU4PR04MB10551:EE_ X-MS-Office365-Filtering-Correlation-Id: 077bbafd-2833-46ed-ed90-08df51d5a5e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|19092799006|7416014|376014|366016|23010399003|1800799024|11063799006|261009223027099003|921020|18002099003|22082099003|10067099003|56012099006|261022075727099003|261026121527099003|261021123027099003|261021121427099003|261028144727099003|261102123227099003|261102130727099003|261026140227099003|261022105027099003; X-Microsoft-Antispam-Message-Info: /EMrnJt2g3wjxLlB599q25qUwomTMc3IoMc5SXd3do3+Fbx4ZOil/0FM5/NUca361s7t+E9XQRTzKK0ItPKwsAbi6rqc/NjrOV2Et1B0yUUyisvSIDQxLsiN394cRgFK2r2kqjlJQ/EmHCbJ9T4n1ViixieNPuNy/82fJpJbKx0otZqtd39qdwq5nkTMamaMd+dvOZnN7/3mhqCMbWiaQSL1nJJQjI/cvW0JExWCXWJ4SHC6IrPav3HAO17MUOeWNpiGsacDMqDDtB8D1HpmW6CqOMqLRkpLkkQ+/kuKn0zuy8iNgVPK0H63u0NcpjI3SKI3jBQiV4Y3O8hN3B+5zX5XWOxuW0bhw64YsFyERYWB+p2yNJFc/CWpduHJ1wy9nqT3ZEjQvKTupNBLfOJBUd8KEwWLuWGE//z/3Hsd1mU7tIOtimxsR8/R6pJD04ZZy3v5bnufXFJ+tMzspJFnFNIZacnioMWsCTi0y/WEjf9JNvlbX853Q29gYu5y9VF2IW5EmnVyXFGbbvSf0kmQfoBRczQ8TjdAdLi+eiMupKr/mGi9+vw+2ZLY17ZFUbiZkfqH1k913JYLjyfjk9ZgEAys9KbnCvojOUVEogZocLgyGi7AdlRAr7+TZrcoydzYhxxezREtdIFlti3G2rLJiJNunpGzrKFD1KjT9A/EbmhyJW7N33tN2M2ail3ZOatOn/bdgWQm3KzwIAN5BW4JbQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB7216.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(19092799006)(7416014)(376014)(366016)(23010399003)(1800799024)(11063799006)(261009223027099003)(921020)(18002099003)(22082099003)(10067099003)(56012099006)(261022075727099003)(261026121527099003)(261021123027099003)(261021121427099003)(261028144727099003)(261102123227099003)(261102130727099003)(261026140227099003)(261022105027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?H3zauPC6NGJJDzkvGVcFC4SGgGr18o94TexgjnfQOEgqBJ4s9bNhs9Rf5PFm?= =?us-ascii?Q?Wvhi36Rg0JLiEMmd21dApShhBonOTwWaZG55TNj3a9v+0MhkqsLs6Q8IFKpt?= =?us-ascii?Q?FcQ+tDB922+DyIfuSYij7pEM9dykM9kbosdsTSGmsiash0eIkbnpQtG38fdg?= =?us-ascii?Q?sBlwPfkjqSfKyXCW7lHCSKVbuuS7kdwhNcVBnfeMTLH3P731YWct4hOL42aO?= =?us-ascii?Q?KTAW3c8BGp9MN0AvRSETUMlqujXmEN2MfjYaihlphy1XDmsymGZ9wI0cMjf1?= =?us-ascii?Q?7YdTA5ou4omvkXIJwWNxAbXmQabdtXaOOkq8c1B9RsbXWGjSXQE17gDONq18?= =?us-ascii?Q?YncBYZMGrifXws2oTMyqlnWOr6WcNMln5eaguv0HygeZSZai2Oul76zpil/u?= =?us-ascii?Q?VF5RHwdH0Dw6FVaN47DkRbci9iD+LOES8LGAjx9GM4qoi+SDWKmJJ5Z1uvx6?= =?us-ascii?Q?IrrzZkJc9a9X7AzZK/ilfOlef8orPAZpclDOzNfA0WYslgkpntwS5NauVc+d?= =?us-ascii?Q?2kMccbqXeVeGKR3Ii2kN8anQDISYHBG7X8QNAxEX+dxCuRyeHjKNwA4qEIF8?= =?us-ascii?Q?2jC97d+/bvOkNas3E0f/5OP7iOJAega+oKkcEarGXYwAA3b3tnYkWOYrh3rR?= =?us-ascii?Q?gLywFaecKnPZE7pv0yK93T63l5dMeD2WAkR6y5EVJnqTqcrmboxus3vmvoyB?= =?us-ascii?Q?B13b6COIaGaGjb1TFonfGJYmhNKhDGFngNbtKpKiHHgCVKUIg9nWuYFfug+R?= =?us-ascii?Q?/J7IzIpvK0GJ7GD1NEt9BbNRnRkPhk3A0KTXxCbrwszPEI8pv6bPm1CVy8sR?= =?us-ascii?Q?1HEopDDu+eN6hMX6XelMqV/DoeHbXsrvcQSdGSR9+J4QG2NKAtH+o7KvMmMW?= =?us-ascii?Q?FwepNxQD+u261eMPrkzJakSD+tYpxHGJwkiqX/S5qcP/oJaeBkbljseIM7Qo?= =?us-ascii?Q?KXYHGF3K9z8w2QLMQdCthWclw5rAa9LxiLwx+OF1XAdKhP1Nc7Ay4D9AyORx?= =?us-ascii?Q?hxPkTh+4fYCEwdtyHvzfEP2xwRkq3eN1jyGDZ4eRZF98XBekJHqXmyPZGBmK?= =?us-ascii?Q?U6uLkMwkSFAbSJDQtZ99L8VsarheKraZrXlaxxIsBZqAQ8OhsncE7MnfnE7z?= =?us-ascii?Q?r3JwzyVoQQFCk4n+W2tmM+AKE0k1Ox/qQiBoUQHs+/hPREpdPG0QWIGgqFoT?= =?us-ascii?Q?HQXaCfAUbDkbmVS/Jq/lu0L4nKKRK/NR61X22aHYGdbFR1FrsfA35MWAxVu/?= =?us-ascii?Q?0C9jeiY1UA4IlOySqNfCo+ce8xs0lZNBVokdFO7D8wects73I+5+TFrOatPJ?= =?us-ascii?Q?wlwdecPMLAO9/+oXW0dJwjtdVAkYk3KHkmVxdp0YpuKNZAh1fTne3MolFfDB?= =?us-ascii?Q?zq58EDrQPT7y6JpIky8X/n1pjVWysfJLtUSXTNpbiwnJXnLapw/U3MzN0W+f?= =?us-ascii?Q?oyNhxsvqGF0u6Ay6EkSp1Z7OQp24dLN8MRzD+UV+vbFe0UrAd480oewM6v9/?= =?us-ascii?Q?rxIY17vHqvpGRp6VQCta6mefqAizuDvapSfbqYuUx4F1OGN4cPLzhSSCGcHf?= =?us-ascii?Q?ya/mseY0ItlItUse8Xp4pPKbIwKJBN8X/vRB/tTyvN4Ht9jFAfT2Ofo+o2JW?= =?us-ascii?Q?eAN8b5wG20BFv0BDKLmyZ6AT744TRuxk5336L7CQ38nrAYhaBWDOI0TnvUSU?= =?us-ascii?Q?ONE6WF14yJ+ZuJnxj/ntHw8PqBY787jN9l19RmYfzs0214YAPyldjuJUh9Fz?= =?us-ascii?Q?1rOD5oOD+z4PQ+DQ48ZnqccLa2ulfTmj4g3eBeijJei5KkVwGkRY?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 077bbafd-2833-46ed-ed90-08df51d5a5e8 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB7216.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 07:10:16.4439 (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: Odjqc1Z01Wzw2leKfHOSXHStvJ213SqYqmybCHa622NuQeMxIIW2Atn12BpbjWOQoaskC/axQyQ/4F3SiXfSKPqWBN1oyzCyW4FJWGM/z10fmy5hBrCAIArYkeX9zgzt X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10551 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_071020_454688_B88C707D X-CRM114-Status: GOOD ( 14.12 ) X-Spam-Score: 1.9 (+) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Wei Fang ntmp_ect_update_entry() still open-codes the update sequence while the other tables now route through ntmp_update_entry_by_id(). To let the Egress Count Table (ECT) reuse the generic helper, it needs a table ops instance. Add ect_ops_v0 and register it in ntmp_table_ops(). The ECT is a static bounded-index table whose entries are always present, so it has no "Add" operation, and its "Update" only resets the counter with no CFGE_DATA to carry, hence its pack() callback is empty. Convert ntmp_ect_update_entry() to call ntmp_update_entry_by_id(), which removes the duplicated boilerplate. Signed-off-by: Wei Fang --- drivers/net/ethernet/freescale/enetc/ntmp.c | 58 ++++++++++----------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/net/ethernet/freescale/enetc/ntmp.c b/drivers/net/ethernet/freescale/enetc/ntmp.c index a0605f0d0b106..3f8a39df78b6f 100644 --- a/drivers/net/ethernet/freescale/enetc/ntmp.c +++ b/drivers/net/ethernet/freescale/enetc/ntmp.c @@ -608,6 +608,31 @@ static const struct ntmp_tbl_ops *ntmp_get_ett_ops(u8 version) } } +static void ntmp_ect_pack_v0(const void *entry, void *buf, int access_method) +{ + /* Egress Count table is a static bounded index table, its entries + * are always present, so it does not support "Add" operation. The + * "Update" operation only resets the counter, so there is no + * CFGE_DATA to be updated. Therefore, there's no need to pack any + * data here. + */ +} + +static const struct ntmp_tbl_ops ect_ops_v0 = { + .req_ua_len = sizeof(struct ntmp_req_by_eid), + .pack = ntmp_ect_pack_v0, +}; + +static const struct ntmp_tbl_ops *ntmp_get_ect_ops(u8 version) +{ + switch (version) { + case NTMP_TBL_V(0): + return &ect_ops_v0; + default: + return NULL; + } +} + static void ntmp_bpt_pack_v0(const void *entry, void *buf, int access_method) { const struct bpt_entry_data *_entry = entry; @@ -653,6 +678,8 @@ static const struct ntmp_tbl_ops *ntmp_table_ops(int tbl_id, u8 version) return ntmp_get_vft_ops(version); case NTMP_ETT_ID: return ntmp_get_ett_ops(version); + case NTMP_ECT_ID: + return ntmp_get_ect_ops(version); case NTMP_BPT_ID: return ntmp_get_bpt_ops(version); default: @@ -1594,35 +1621,8 @@ EXPORT_SYMBOL_GPL(ntmp_ett_delete_entry); */ int ntmp_ect_update_entry(struct ntmp_user *user, u32 entry_id) { - struct ntmp_req_by_eid *req; - struct netc_swcbd swcbd; - struct netc_cbdr *cbdr; - union netc_cbd cbd; - int err; - - swcbd.size = sizeof(*req); - err = ntmp_alloc_data_mem(user->dev, &swcbd, (void **)&req); - if (err) - return err; - - /* Request data */ - ntmp_fill_crd_eid(req, user->tbl_ver[NTMP_ECT_ID], 0, - ECT_UA_STSEU, entry_id); - - /* Request header */ - ntmp_fill_request_hdr(&cbd, swcbd.dma, NTMP_LEN(swcbd.size, 0), - NTMP_ECT_ID, NTMP_CMD_UPDATE, NTMP_AM_ENTRY_ID); - - ntmp_select_and_lock_cbdr(user, &cbdr); - err = netc_xmit_ntmp_cmd(cbdr, &cbd, &swcbd); - if (err) - dev_err(user->dev, - "Failed to update %s entry 0x%x, err: %pe\n", - ntmp_table_name(NTMP_ECT_ID), entry_id, ERR_PTR(err)); - - ntmp_unlock_cbdr(cbdr); - - return err; + return ntmp_update_entry_by_id(user, NTMP_ECT_ID, entry_id, NULL, + ECT_UA_STSEU, 0); } EXPORT_SYMBOL_GPL(ntmp_ect_update_entry); -- 2.34.1