[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3c1719a9-ec85-b1ae-81bd-33b93fd50131@intel.com>
Date: Tue, 8 Oct 2024 10:24:41 -0700
From: Tony Nguyen <anthony.l.nguyen@...el.com>
To: Paolo Abeni <pabeni@...hat.com>
CC: <przemyslaw.kitszel@...el.com>, Joe Damato <jdamato@...tly.com>, open list
<linux-kernel@...r.kernel.org>, <aleksander.lobakin@...el.com>, Eric Dumazet
<edumazet@...gle.com>, "moderated list:INTEL ETHERNET DRIVERS"
<intel-wired-lan@...ts.osuosl.org>, <horms@...nel.org>,
<netdev@...r.kernel.org>, <kuba@...nel.org>, "David S. Miller"
<davem@...emloft.net>
Subject: Re: [Intel-wired-lan] [net-next v3] idpf: Don't hard code napi_struct
size
On 10/8/2024 2:14 AM, Paolo Abeni wrote:
> On 10/4/24 12:54, Joe Damato wrote:
>> The sizeof(struct napi_struct) can change. Don't hardcode the size to
>> 400 bytes and instead use "sizeof(struct napi_struct)".
>>
>> Suggested-by: Alexander Lobakin <aleksander.lobakin@...el.com>
>> Signed-off-by: Joe Damato <jdamato@...tly.com>
>> ---
>> drivers/net/ethernet/intel/idpf/idpf_txrx.h | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.h
>> b/drivers/net/ethernet/intel/idpf/idpf_txrx.h
>> index f0537826f840..9c1fe84108ed 100644
>> --- a/drivers/net/ethernet/intel/idpf/idpf_txrx.h
>> +++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.h
>> @@ -438,7 +438,8 @@ struct idpf_q_vector {
>> __cacheline_group_end_aligned(cold);
>> };
>> libeth_cacheline_set_assert(struct idpf_q_vector, 112,
>> - 424 + 2 * sizeof(struct dim),
>> + 24 + sizeof(struct napi_struct) +
>> + 2 * sizeof(struct dim),
>> 8 + sizeof(cpumask_var_t));
>> struct idpf_rx_queue_stats {
>
> @Tony: I'm assuming you want this one to go via your tree first, please
> LMK otherwise.
Hi Paolo,
This seems straightforward and we'd see the issues compile-time so I
think it's ok for you to take directly.
Reviewed-by: Tony Nguyen <anthony.l.nguyen@...el.com>
Thanks,
Tony
Powered by blists - more mailing lists