From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796454677; b=I2cfwLkrRn3ieRBHu3KI+BxqEBTioNWkhrMXzShhGBr9Trvwo2rLZN/DQUxozlbyBJui Mz4FUxf9a2Q+qMXArTqwBvuIO5B+GM+edlMRsv2ktTiSYI44WPfNXTByETt7Pv4RJPdSW XEb7CTDJmtoz8G/6BfKIcpxmiX+VQJPzEnQyianrzWWhoZdNJONbynXJhLEckQC1wfG03 XouGS3+Q7vD5MzDU8JyFwtj8gqiv0b+nfKhxMpxOiY77kHV7NcArjuvo1L1IYMNXqvbTE 8Y+AArOk6QX1jhfgmnxeDEj0Jes8p1SgdNfO0KeInoFIgmAoqR3VwXdxFnUbRpKiDCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796454677; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=y0cm5ZHL3NGmKGXKez2YjaNN2gvgs8PXPrqakbf2WtQ=; b=fu2rH+WliNWCD1BtsYDAKAidiCGxpc//abIBmOwTMwchBwmsVXSigL02bL2a1qqndNaZ fvKRVRkVsnq71ErlXaAPmTOEErdzBrKb9LdybP1Jo2PdTaK6yE96hY+SirT37sSRuGIFH 6H6qpsk0TyOFf5GE7qXX8DlhH8fRXc5r5vTLUiJgvKKGmDNII7ZuqjbQInaU70Ocujukb 0ml+IQc8rIT/5naq4jArfUtYO8X7VknEbUhQDxyE8523hDoLYui+hDh+rvtvlE5MZbsLt /Ah48xr6vUzUhvpOrC5otFsCvqAXejmrODOll+8vqTgS6beWNEgwZvv8KgF/1elCOgg== 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=lPnJTXmC; arc=none smtp.remote-ip=100.103.45.18 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 2CDA9606A322 for ; Sat, 5 Dec 2026 07:11:17 +0000 (UTC) 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=lPnJTXmC Received: by smtp.kernel.org (Postfix) with ESMTPSA id E12331F00936; Sat, 5 Dec 2026 07:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796454677; bh=y0cm5ZHL3NGmKGXKez2YjaNN2gvgs8PXPrqakbf2WtQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=lPnJTXmCWN8CyhhInE9MuRhMKdK0yWLOqAPcfUcwsulRw3BlQX2dJ1QUhEpidxuwA W5AoOu2cjWsIOeOEzJGZyPAs4BGvyMyp74jCpGIerFiPwAuaDxUGL5zNC4R5TtU1OJ y3KDsr7ifZ6fXWy6dWuYMb0/djGnGUdvUcnGCRpTdSqgV2lL1gWd839Dl20lUUWx+2 7maU2w3KOgtfIA284s+/p0+1nsTBdrd3dWJA1iDG9b9RlP1u+oKZjMkKUV9i9BR5+O +ik8pMwhXXDAEsTxYxVfuF9f4epd8cmsKJHq0yxjfdxCr6zmoQBbFhNew4QChp+wmi XWFj//PexE5ig== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 05/14] net: enetc: decouple VFT logical config from hardware wire format Reply-To: sashiko-reviews@lists.linux.dev To: wei.fang@oss.nxp.com Cc: imx@lists.linux.dev, Frank.Li@kernel.org In-Reply-To: <20261204071410.692071-6-wei.fang@oss.nxp.com> References: <20261204071410.692071-1-wei.fang@oss.nxp.com> <20261204071410.692071-6-wei.fang@oss.nxp.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 07:11:16 +0000 X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: enetc: non-const ntmp_vft_update_entry() and incomplete VFT docs -- commit 98b3d6d9f9e5a1818085f893ecfc16c3af754b3d Author: Wei Fang net: enetc: decouple VFT logical config from hardware wire format This commit introduces a version-agnostic struct vft_entry_data with native CPU types, moves the wire format structures into ntmp_private.h, and adds vft_ops_v0 pack/unpack callbacks for VFT version 0. It also updates ntmp_vft_add_entry() to use NTMP_CMD_AQ and adjusts the NETC switch driver callers accordingly. > diff --git a/drivers/net/ethernet/freescale/enetc/ntmp.c b/drivers/net/et= hernet/freescale/enetc/ntmp.c > index 801e4e7bb8314..9d642dbf5e429 100644 > --- a/drivers/net/ethernet/freescale/enetc/ntmp.c > +++ b/drivers/net/ethernet/freescale/enetc/ntmp.c [ ... ] > @@ -1245,21 +1309,22 @@ static int ntmp_vft_set_entry(struct ntmp_user *u= ser, u16 vid, int cmd, > /** > * ntmp_vft_add_entry - add an entry into the VLAN filter table > * @user: target ntmp_user struct > - * @vid: VLAN ID > - * @cfge: configuration element data > + * @entry: the entry data, entry->vid is the VLAN ID and the configurati= on > + * element data provides the values > * > * Return: 0 on success, otherwise a negative error code > */ > -int ntmp_vft_add_entry(struct ntmp_user *user, u16 vid, > - const struct vft_cfge_data *cfge) > +int ntmp_vft_add_entry(struct ntmp_user *user, > + struct vft_entry_data *entry) > { > int err; > =20 > - err =3D ntmp_vft_set_entry(user, vid, NTMP_CMD_ADD, cfge); > + err =3D ntmp_vft_set_entry(user, NTMP_CMD_AQ, entry); > if (err) > dev_err(user->dev, > "Failed to add %s entry, vid: %u, err: %pe\n", > - ntmp_table_name(NTMP_VFT_ID), vid, ERR_PTR(err)); > + ntmp_table_name(NTMP_VFT_ID), entry->vid, > + ERR_PTR(err)); > =20 > return err; > } > @@ -1269,21 +1334,22 @@ EXPORT_SYMBOL_GPL(ntmp_vft_add_entry); > * ntmp_vft_update_entry - update the configuration element data of the > * specified VLAN filter entry > * @user: target ntmp_user struct > - * @vid: VLAN ID > - * @cfge: configuration element data > + * @entry: the entry data, entry->vid selects the VLAN filter entry and > + * the configuration element data provides the new values > * > * Return: 0 on success, otherwise a negative error code > */ > -int ntmp_vft_update_entry(struct ntmp_user *user, u16 vid, > - const struct vft_cfge_data *cfge) > +int ntmp_vft_update_entry(struct ntmp_user *user, > + struct vft_entry_data *entry) [Severity: Low] Can ntmp_vft_update_entry() keep const on its entry parameter (here and in include/linux/fsl/ntmp.h)? Unlike ntmp_vft_add_entry(), it only reads *ent= ry, and sibling update helpers such as ntmp_fdbt_update_entry() and ntmp_ett_update_entry() take a const pointer; this remains non-const even after commit "net: enetc: add a generic helper to add an NTMP entry by key" splits the add and update paths. Also, the kernel-doc for ntmp_vft_add_entry() does not mention that hardware writes the assigned entry ID back into entry->entry_id via NTMP_CMD_AQ, unlike ntmp_ipft_add_entry() and ntmp_fdbt_add_entry(). Finally, the commit message says vft_ops_v0 holds the buffer size and a pack() callback, omitting struct vft_resp_query, resp_query_len, and ntmp_vft_unpack_v0(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204071410.6920= 71-1-wei.fang@oss.nxp.com?part=3D5