From: netdev-bot+sashiko@kernel.org
To: anthony.l.nguyen@intel.com
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@google.com, andrew+netdev@lunn.ch,
netdev@vger.kernel.org, lukasz.czapnik@intel.com,
marcin.szycik@linux.intel.com, aleksandr.loktionov@intel.com,
sandeep.penigalapati@intel.com, ananth.s@intel.com,
alexander.duyck@gmail.com, sx.rinitha@intel.com
Subject: Re: [PATCH net-next v2 01/12] ice: rename shared Flow Director functions and structs
Date: Mon, 21 Sep 2026 19:57:16 +0000 [thread overview]
Message-ID: <179002063608.2160803.374435720092544073@kernel.org> (raw)
In-Reply-To: <20260917183927.2692068-2-anthony.l.nguyen@intel.com>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Kernel-doc for the renamed ethtool entry points advertises
functionality this patch does not implement: ice_add_ntuple_ethtool()…
--
ice: rename shared Flow Director functions and structs
This renames the shared Flow Director helpers and struct ice_fdir_fltr to
use an 'ntuple' prefix, moves ice_fdir_update_cntrs() into the ethtool
file as a static ice_ntuple_update_cntrs(), and renames
ice_ethtool_fdir.c to ice_ethtool_ntuple.c. The stated goal is to prepare
these entities for also handling ACL filters.
> diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c b/drivers/net/ethernet/intel/ice/ice_ethtool_ntuple.c
> similarity index 96%
> rename from drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c
> rename to drivers/net/ethernet/intel/ice/ice_ethtool_ntuple.c
> index aceec184e89b2..744cd0b824703 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c
> +++ b/drivers/net/ethernet/intel/ice/ice_ethtool_ntuple.c
[ ... ]
> @@ -1746,18 +1765,18 @@ ice_fdir_update_list_entry(struct ice_pf *pf, struct ice_fdir_fltr *input,
> ice_fdir_list_add_fltr(hw, input);
> /* update sb-filters count, specific to ring->channel */
> ice_update_per_q_fltr(vsi, input->orig_q_index, true);
> - ice_fdir_update_cntrs(hw, input->flow_type, true);
> + ice_ntuple_update_cntrs(hw, input->flow_type, true);
> return 0;
> }
>
> /**
> - * ice_del_fdir_ethtool - delete Flow Director filter
> + * ice_del_ntuple_ethtool - delete Flow Director or ACL filter
> * @vsi: pointer to target VSI
> - * @cmd: command to add or delete Flow Director filter
> + * @cmd: command to add or delete the filter
> *
> - * Returns 0 on success and negative values for failure
> + * Return: 0 on success and negative values for failure
> */
> -int ice_del_fdir_ethtool(struct ice_vsi *vsi, struct ethtool_rxnfc *cmd)
> +int ice_del_ntuple_ethtool(struct ice_vsi *vsi, struct ethtool_rxnfc *cmd)
[Severity: Low]
This isn't a bug, but should the kernel-doc here describe only what this
commit implements?
At this commit ice_del_ntuple_ethtool() returns -EOPNOTSUPP unless
ICE_FLAG_FD_ENA is set, and the only programming path is
ice_ntuple_update_list_entry() -> ice_fdir_write_all_fltr(), which
unconditionally does Flow Director programming and maintains
hw->fdir_fltr_cnt[]:
if (old_fltr) {
err = ice_fdir_write_all_fltr(pf, old_fltr, false);
if (err)
return err;
ice_ntuple_update_cntrs(hw, old_fltr->flow_type, false);
There is also no discriminator in struct ice_ntuple_fltr at this commit for
telling an ACL-backed rule from a Flow Director rule; the bool acl_fltr
field and the ice_del_acl_ethtool() dispatch only appear in later patches of
the series (ending with "ice: use ACL for ntuple rules that conflict with
FDir"). Would it be clearer to keep the wording Flow Director here and
update it in the patch that actually adds ACL handling?
[ ... ]
> @@ -1968,17 +1989,17 @@ ice_set_fdir_input_set(struct ice_vsi *vsi, struct ethtool_rx_flow_spec *fsp,
> }
>
> /**
> - * ice_add_fdir_ethtool - Add/Remove Flow Director filter
> + * ice_add_ntuple_ethtool - Add/Remove Flow Director or ACL filter
> * @vsi: pointer to target VSI
> - * @cmd: command to add or delete Flow Director filter
> + * @cmd: command to add or delete the filter
> *
> - * Returns 0 on success and negative values for failure
> + * Return: 0 on success and negative values for failure
> */
> -int ice_add_fdir_ethtool(struct ice_vsi *vsi, struct ethtool_rxnfc *cmd)
> +int ice_add_ntuple_ethtool(struct ice_vsi *vsi, struct ethtool_rxnfc *cmd)
[Severity: Low]
Same question for ice_add_ntuple_ethtool(). The body at this commit only
builds a Flow Director extraction sequence via ice_cfg_fdir_xtrct_seq(),
checks Flow Director capacity with ice_fdir_num_avail_fltr(), and programs
via ice_fdir_write_all_fltr(), so the "or ACL filter" part of the summary
line has no corresponding code yet.
The ACL dispatch (ice_acl_add_rule_ethtool()) arrives in a later patch of
this series, so by the end of the series the wording is accurate; is the
forward-looking wording here intentional?
[ ... ]
> diff --git a/drivers/net/ethernet/intel/ice/ice_fdir.h b/drivers/net/ethernet/intel/ice/ice_fdir.h
> index 820023c0271fd..54f51ae31b402 100644
> --- a/drivers/net/ethernet/intel/ice/ice_fdir.h
> +++ b/drivers/net/ethernet/intel/ice/ice_fdir.h
> @@ -160,7 +160,7 @@ struct ice_fdir_extra {
> __be16 vlan_tag; /* VLAN tag info */
> };
>
> -struct ice_fdir_fltr {
> +struct ice_ntuple_fltr {
> struct list_head fltr_node;
> enum ice_fltr_ptype flow_type;
>
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260917183927.2692068-1-anthony.l.nguyen%40intel.com
next prev parent reply other threads:[~2026-09-21 19:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 18:39 [PATCH net-next v2 00/12][pull request] ice: Add ACL support Tony Nguyen
2026-09-17 18:39 ` [PATCH net-next v2 01/12] ice: rename shared Flow Director functions and structs Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko [this message]
2026-09-17 18:39 ` [PATCH net-next v2 02/12] ice: remove unused ICE_FD_FLUSH_REQ from PF state Tony Nguyen
2026-09-18 15:43 ` Loktionov, Aleksandr
2026-09-17 18:39 ` [PATCH net-next v2 03/12] ice: initialize ACL table Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 04/12] ice: initialize ACL scenario Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 05/12] ice: create flow profile Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 06/12] Revert "ice: remove unused ice_flow_entry fields" Tony Nguyen
2026-09-17 18:39 ` [PATCH net-next v2 07/12] ice: use plain alloc/dealloc for ice_ntuple_fltr Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 08/12] ice: create ACL entry Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 09/12] ice: program " Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 10/12] ice: add ACL reset recovery and NTUPLE feature toggle Tony Nguyen
2026-09-18 15:44 ` Loktionov, Aleksandr
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-17 18:39 ` [PATCH net-next v2 11/12] ice: re-introduce ice_dealloc_flow_entry() helper Tony Nguyen
2026-09-17 18:39 ` [PATCH net-next v2 12/12] ice: use ACL for ntuple rules that conflict with FDir Tony Nguyen
2026-09-21 19:57 ` netdev-bot+sashiko
2026-09-21 16:02 ` [PATCH net-next v2 00/12][pull request] ice: Add ACL support Marcin Szycik
2026-09-23 1:17 ` Jakub Kicinski
2026-09-23 1:30 ` patchwork-bot+netdevbpf
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=179002063608.2160803.374435720092544073@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=aleksandr.loktionov@intel.com \
--cc=alexander.duyck@gmail.com \
--cc=ananth.s@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=lukasz.czapnik@intel.com \
--cc=marcin.szycik@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sandeep.penigalapati@intel.com \
--cc=sx.rinitha@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox