[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240509081954.42d71326@kernel.org>
Date: Thu, 9 May 2024 08:19:54 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jiawen Wu <jiawenwu@...stnetic.com>
Cc: <davem@...emloft.net>, <edumazet@...gle.com>, <pabeni@...hat.com>,
<rmk+kernel@...linux.org.uk>, <andrew@...n.ch>, <netdev@...r.kernel.org>,
<mengyuanlou@...-swift.com>, <duanqiangwen@...-swift.com>
Subject: Re: [PATCH net v2 1/4] net: wangxun: fix the incorrect display of
queue number in statistics
On Thu, 9 May 2024 10:39:22 +0800 Jiawen Wu wrote:
> > The ethtool API fetches the number of stats and the values in an
> > unsafe, non-atomic way. If someone increases the number of queues
> > while someone else is fetching the stats the memory of the latter
> > process will get corrupted. The code is correct as is.
>
> So should we keep the old code, showing stats with fixed maximum
> number of queues?
Yes.
Powered by blists - more mailing lists