Re: [PATCH net-next v2 4/5] net/mlx5e: Add PSP stats support for Rx/Tx flows
From: Daniel Zahka
Date: Wed Nov 05 2025 - 15:31:53 EST
On 10/30/25 12:11 PM, Cosmin Ratiu wrote:
+static voidI don't see the point of the intermediate struct mlx5e_psp_stats, this
+mlx5e_psp_get_stats(struct psp_dev *psd, struct psp_dev_stats
*stats)
+{
+ struct mlx5e_priv *priv = netdev_priv(psd->main_netdev);
+ struct mlx5e_psp_stats nstats;
+
+ mlx5e_accel_psp_fs_get_stats_fill(priv, &nstats);
function could query counters directly into stats.
Just because mlx5_fc_query() populates packet and byte counts, but psp_dev_stats required stats only have byte counts for two of the categories.
I'll address the rest of you comments on the respin. Thanks for taking a look.