From: Bruce Richardson <bruce.richardson@intel.com>
To: Anatoly Burakov <anatoly.burakov@intel.com>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH v1 2/2] net/ice: rename flow metadata parameter to rule
Date: Wed, 21 Oct 2026 11:23:10 +0100 [thread overview]
Message-ID: <atiSjuqUPouKIF2z@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <d42ef9c40c98cc9ccb576f962ba0524a4a769ade.1792577695.git.anatoly.burakov@intel.com>
On Wed, Oct 21, 2026 at 11:15:02AM +0100, Anatoly Burakov wrote:
> Parsers now return the final engine-specific rule rather than temporary
> metadata. The generic flow layer passes this object to engine creation
> and stores it in `flow->rule`.
>
> Rename the `meta` parameters and related local variables to reflect
> their role as persistent rules.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
> drivers/net/intel/ice/ice_acl_filter.c | 36 +++++++++----------
> drivers/net/intel/ice/ice_fdir_filter.c | 8 ++---
> drivers/net/intel/ice/ice_generic_flow.c | 16 ++++-----
> drivers/net/intel/ice/ice_generic_flow.h | 6 ++--
> drivers/net/intel/ice/ice_hash.c | 42 +++++++++++------------
> drivers/net/intel/ice/ice_switch_filter.c | 8 ++---
> 6 files changed, 58 insertions(+), 58 deletions(-)
>
> diff --git a/drivers/net/intel/ice/ice_acl_filter.c b/drivers/net/intel/ice/ice_acl_filter.c
> index 08695b554f1..fdd841b062d 100644
> --- a/drivers/net/intel/ice/ice_acl_filter.c
> +++ b/drivers/net/intel/ice/ice_acl_filter.c
> @@ -505,11 +505,11 @@ ice_acl_hw_rem_conf(struct ice_pf *pf, struct acl_rule *rule, int32_t entry_idx)
>
> static int
> ice_acl_create_filter(struct ice_adapter *ad,
> - void *meta,
> + void *rule,
> struct rte_flow_error *error)
> {
> - struct acl_rule *rule = meta;
> - struct ice_acl_conf *filter = &rule->conf;
> + struct acl_rule *acl_rule = rule;
> + struct ice_acl_conf *filter = &acl_rule->conf;
I dislike the churn that this rename causes. For this function can you not
name the parameter "acl_rule" or even just "_rule" to avoid renaming the
local variable?
> enum ice_fltr_ptype flow_type = filter->input.flow_type;
> struct ice_flow_action acts[1];
> struct ice_pf *pf = &ad->pf;
> @@ -538,7 +538,7 @@ ice_acl_create_filter(struct ice_adapter *ad,
> }
>
> input->acl_fltr = true;
> - ret = ice_acl_hw_set_conf(pf, input, acts, rule, flow_type, 0);
> + ret = ice_acl_hw_set_conf(pf, input, acts, acl_rule, flow_type, 0);
> if (ret) {
> return rte_flow_error_set(error, -ret,
> RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
> @@ -547,29 +547,29 @@ ice_acl_create_filter(struct ice_adapter *ad,
<snip>
next prev parent reply other threads:[~2026-10-21 10:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-21 10:15 [PATCH v1 1/2] net/ice: remove unused flow handle from engines Anatoly Burakov
2026-10-21 10:15 ` [PATCH v1 2/2] net/ice: rename flow metadata parameter to rule Anatoly Burakov
2026-10-21 10:23 ` Bruce Richardson [this message]
2026-10-21 10:17 ` [PATCH v1 1/2] net/ice: remove unused flow handle from engines Burakov, Anatoly
2026-10-21 10:19 ` Bruce Richardson
2026-10-21 10:52 ` [PATCH v2 1/3] " Anatoly Burakov
2026-10-21 10:52 ` [PATCH v2 2/3] net/ice: rename flow metadata parameter to rule Anatoly Burakov
2026-10-21 16:24 ` Bruce Richardson
2026-10-21 10:52 ` [PATCH v2 3/3] net/ice: rename RSS flow configuration variables Anatoly Burakov
2026-10-21 16:25 ` Bruce Richardson
2026-10-22 11:50 ` [PATCH v2 1/3] net/ice: remove unused flow handle from engines Bruce Richardson
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=atiSjuqUPouKIF2z@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
/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