[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6f5415915976495f8252411c317aedbb@amazon.com>
Date: Wed, 8 May 2024 05:55:50 +0000
From: "Arinzon, David" <darinzon@...zon.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: David Miller <davem@...emloft.net>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "Woodhouse, David" <dwmw@...zon.co.uk>, "Machulsky,
Zorik" <zorik@...zon.com>, "Matushevsky, Alexander" <matua@...zon.com>,
"Bshara, Saeed" <saeedb@...zon.com>, "Wilson, Matt" <msw@...zon.com>,
"Liguori, Anthony" <aliguori@...zon.com>, "Bshara, Nafea" <nafea@...zon.com>,
"Belgazal, Netanel" <netanel@...zon.com>, "Saidi, Ali" <alisaidi@...zon.com>,
"Herrenschmidt, Benjamin" <benh@...zon.com>, "Kiyanovski, Arthur"
<akiyano@...zon.com>, "Dagan, Noam" <ndagan@...zon.com>, "Agroskin, Shay"
<shayagr@...zon.com>, "Itzko, Shahar" <itzko@...zon.com>, "Abboud, Osama"
<osamaabb@...zon.com>, "Ostrovsky, Evgeny" <evostrov@...zon.com>, "Tabachnik,
Ofir" <ofirt@...zon.com>
Subject: RE: [PATCH v1 net-next 6/6] net: ena: Add a field for no interrupt
moderation update action
> On Mon, 6 May 2024 07:04:53 +0000 darinzon@...zon.com wrote:
> > + for (i = 0; i < adapter->num_io_queues; i++) {
> > + adapter->rx_ring[i].interrupt_interval_changed =
>
> Shouldn't this be |= ?
>
Hi Jakub,
Thank you for reviewing the patch.
This is a true/false indicator, it doesn't require history/previous value to be considered.
Therefore, not sure I see the how |= can help us in the logic here.
The flag is set here to true if during the interrupt moderation update, which is, in this flow,
triggered by an ethtool operation, the moderation value has changed from the currently
configurated one.
> > + adapter->rx_ring[i].interrupt_interval != val;
> > + adapter->rx_ring[i].interrupt_interval = val;
> > + }
Powered by blists - more mailing lists