From: sashiko-bot@kernel.org
To: wei.fang@oss.nxp.com
Cc: imx@lists.linux.dev, Frank.Li@kernel.org
Subject: Re: [PATCH net-next 13/14] net: enetc: add a generic helper to add an NTMP entry by key
Date: Sat, 05 Dec 2026 07:11:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-251209@kernel.org> (raw)
In-Reply-To: <20261204071410.692071-14-wei.fang@oss.nxp.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] net: enetc: commit message mismatches ntmp_vft_set_entry() and
VFT QA changes
--
commit b7323b1d467ae9795199341f8412290658233551
Author: Wei Fang <wei.fang@nxp.com>
> net: enetc: add a generic helper to add an NTMP entry by key
>
> The Add operations for the IPFT, FDBT and VLAN filter tables share
> the same logic: pack the request, issue an "Add then Query" command
> so the hardware-allotted entry ID can be read back, and unpack the
> response. Three separate functions open-coded this identical flow.
>
> Add a generic ntmp_add_entry_by_key() helper that takes the table
> ID, the update-actions mask and the access method, and convert
> ntmp_ipft_add_entry(), ntmp_fdbt_add_entry() and ntmp_vft_add_entry()
> into thin wrappers around it.
>
> With the Add path moved out, ntmp_vft_set_entry() no longer needs to
> handle both commands. Turn it into a dedicated ntmp_vft_update_entry()
> that always issues NTMP_CMD_UPDATE, and drop the now-redundant command
> argument and its validation.
>
> Signed-off-by: Wei Fang <wei.fang@nxp.com>
[Severity: Low]
Could the commit message be updated to match the actual diff?
ntmp_vft_set_entry() had no command validation check left to drop here;
it was already removed earlier in the series by commit "net: enetc:
decouple VFT logical config from hardware wire format", so this patch
only drops the cmd parameter and the NTMP_CMD_AQ unpack branch.
Also, the three Add paths were not completely identical:
ntmp_vft_set_entry() previously passed query action 0 to ntmp_fill_crd(),
whereas ntmp_add_entry_by_key() passes NTMP_QA_ENTRY_ID. It would help
reviewers to note this change in the VFT add wire request.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204071410.692071-1-wei.fang@oss.nxp.com?part=13
next prev parent reply other threads:[~2026-12-05 7:11 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 7:13 [PATCH net-next 00/14] net: enetc: refactor NTMP table handling and add generic helpers wei.fang
2026-12-04 7:13 ` [PATCH net-next 01/14] net: enetc: use an ID-indexed array to track NTMP table versions wei.fang
2026-12-04 7:13 ` [PATCH net-next 02/14] net: enetc: decouple MAFT logical config from hardware wire format wei.fang
2026-12-04 7:13 ` [PATCH net-next 03/14] net: enetc: decouple IPFT " wei.fang
2026-12-04 7:14 ` [PATCH net-next 04/14] net: enetc: decouple FDBT " wei.fang
2026-12-05 7:11 ` sashiko-bot
2026-12-04 7:14 ` [PATCH net-next 05/14] net: enetc: decouple VFT " wei.fang
2026-12-05 7:11 ` sashiko-bot
2026-12-04 7:14 ` [PATCH net-next 06/14] net: enetc: decouple ETT " wei.fang
2026-12-04 7:14 ` [PATCH net-next 07/14] net: enetc: decouple BPT " wei.fang
2026-12-05 7:11 ` sashiko-bot
2026-12-04 7:14 ` [PATCH net-next 08/14] net: enetc: add generic ntmp_add_entry_by_id() helper wei.fang
2026-12-05 7:11 ` sashiko-bot
2026-12-04 7:14 ` [PATCH net-next 09/14] net: enetc: simplify callers of ntmp_query_entry_by_id() wei.fang
2026-12-04 7:14 ` [PATCH net-next 10/14] net: enetc: add kernel-doc for ntmp_delete_entry_by_id() wei.fang
2026-12-04 7:14 ` [PATCH net-next 11/14] net: enetc: add a generic helper to update an NTMP entry by entry ID wei.fang
2026-12-05 7:11 ` sashiko-bot
2026-12-04 7:14 ` [PATCH net-next 12/14] net: enetc: convert ntmp_ect_update_entry() to the generic update helper wei.fang
2026-12-04 7:14 ` [PATCH net-next 13/14] net: enetc: add a generic helper to add an NTMP entry by key wei.fang
2026-12-05 7:11 ` sashiko-bot [this message]
2026-12-04 7:14 ` [PATCH net-next 14/14] net: enetc: convert the RSST to the generic NTMP entry helpers wei.fang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-251209@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=imx@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wei.fang@oss.nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.