[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ3xEMg_2zd1yr4vZjvgEEmAAYbXX9Ax9C+Jtyt87eQNrioPVA@mail.gmail.com>
Date: Mon, 28 May 2018 11:34:18 +0300
From: Or Gerlitz <gerlitz.or@...il.com>
To: Raed Salem <raeds@...lanox.com>,
Leon Romanovsky <leonro@...lanox.com>
Cc: RDMA mailing list <linux-rdma@...r.kernel.org>,
Yishai Hadas <yishaih@...lanox.com>,
Saeed Mahameed <saeedm@...lanox.com>,
linux-netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH mlx5-next v1 02/13] net/mlx5: Export flow counter related API
On Sun, May 27, 2018 at 1:23 PM, Leon Romanovsky <leon@...nel.org> wrote:
> From: Raed Salem <raeds@...lanox.com>
>
> Exports counters API to be used in both IB and EN.
>
> Reviewed-by: Yishai Hadas <yishaih@...lanox.com>
> Signed-off-by: Raed Salem <raeds@...lanox.com>
> Signed-off-by: Leon Romanovsky <leonro@...lanox.com>
> ---
> drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 23 ----------------------
> .../net/ethernet/mellanox/mlx5/core/fs_counters.c | 3 +++
> include/linux/mlx5/fs.h | 22 +++++++++++++++++++++
> 3 files changed, 25 insertions(+), 23 deletions(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
> index b6da322a8016..40992aed1791 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
> @@ -131,29 +131,6 @@ struct mlx5_flow_table {
> struct rhltable fgs_hash;
> };
>
> -struct mlx5_fc_cache {
> - u64 packets;
> - u64 bytes;
> - u64 lastuse;
> -};
> -
> -struct mlx5_fc {
> - struct rb_node node;
> - struct list_head list;
> -
> - /* last{packets,bytes} members are used when calculating the delta since
> - * last reading
> - */
> - u64 lastpackets;
> - u64 lastbytes;
> -
> - u32 id;
> - bool deleted;
> - bool aging;
> -
> - struct mlx5_fc_cache cache ____cacheline_aligned_in_smp;
> -};
> -
are you using the caching services @ the IB driver? please point me to
the patch that does so
Powered by blists - more mailing lists