[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b692fdcf-e37e-9faa-5c06-af73dd52ee49@mellanox.com>
Date: Wed, 21 Jun 2017 11:12:24 +0300
From: Gal Pressman <galp@...lanox.com>
To: David Laight <David.Laight@...LAB.COM>,
'Saeed Mahameed' <saeedm@...lanox.com>,
"David S. Miller" <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"kernel-team@...com" <kernel-team@...com>
Subject: Re: [net-next 11/15] net/mlx5e: Reduce number of heap allocated
buffers for update stats
>> + u32 in[MLX5_ST_SZ_DW(ppcnt_reg)] = {0};
> How big is that?
>
> Allocating large on-stack buffers is even worse.
Both PPCNT and MPCNT registers are 252 bytes.
I don't see a problem allocating them on the stack.
Powered by blists - more mailing lists