[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240722150136.GH715661@kernel.org>
Date: Mon, 22 Jul 2024 16:01:36 +0100
From: Simon Horman <horms@...nel.org>
To: Ahmed Zaki <ahmed.zaki@...el.com>
Cc: intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
anthony.l.nguyen@...el.com, Junfeng Guo <junfeng.guo@...el.com>,
Marcin Szycik <marcin.szycik@...ux.intel.com>
Subject: Re: [PATCH iwl-next v3 05/13] ice: add parser execution main loop
On Wed, Jul 10, 2024 at 02:40:07PM -0600, Ahmed Zaki wrote:
> From: Junfeng Guo <junfeng.guo@...el.com>
>
> Implement the core work of the runtime parser via:
> - ice_parser_rt_execute()
> - ice_parser_rt_reset()
> - ice_parser_rt_pkt_buf_set()
>
> Reviewed-by: Marcin Szycik <marcin.szycik@...ux.intel.com>
> Signed-off-by: Qi Zhang <qi.z.zhang@...el.com>
> Signed-off-by: Junfeng Guo <junfeng.guo@...el.com>
> Signed-off-by: Ahmed Zaki <ahmed.zaki@...el.com>
> diff --git a/drivers/net/ethernet/intel/ice/ice_parser_rt.c b/drivers/net/ethernet/intel/ice/ice_parser_rt.c
...
> +static u16 ice_ptype_resolve(struct ice_parser_rt *rt)
> +{
> + struct ice_parser *psr = rt->psr;
> + struct ice_ptype_mk_tcam_item *item;
nit: Please consider arranging these variables in reverse xmas tree order.
Flagged by https://github.com/ecree-solarflare/xmastree
> +
> + item = ice_ptype_mk_tcam_match(psr->ptype_mk_tcam_table,
> + rt->markers, ICE_MARKER_ID_SIZE);
> + if (item)
> + return item->ptype;
> +
> + ice_debug(rt->psr->hw, ICE_DBG_PARSER, "Could not resolve PTYPE\n");
> + return U16_MAX;
> +}
...
Powered by blists - more mailing lists