[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191209.103458.2167030481856657930.davem@davemloft.net>
Date: Mon, 09 Dec 2019 10:34:58 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: netanel@...zon.com
Cc: netdev@...r.kernel.org, dwmw@...zon.com, zorik@...zon.com,
matua@...zon.com, saeedb@...zon.com, msw@...zon.com,
aliguori@...zon.com, nafea@...zon.com, gtzalik@...zon.com,
alisaidi@...zon.com, benh@...zon.com, akiyano@...zon.com
Subject: Re: [PATCH V1 net] net: ena: fix napi handler misbehavior when the
napi budget is zero
From: Netanel Belgazal <netanel@...zon.com>
Date: Sun, 8 Dec 2019 17:30:26 +0000
> In netpoll the napi handler could be called with budget equal to zero.
> Current ENA napi handler doesn't take that into consideration.
>
> The napi handler handles Rx packets in a do-while loop.
> Currently, the budget check happens only after decrementing the
> budget, therefore the napi handler, in rare cases, could run over
> MAX_INT packets.
>
> In addition to that, this moves all budget related variables to int
> calculation and stop mixing u32 to avoid ambiguity
>
> Signed-off-by: Netanel Belgazal <netanel@...zon.com>
Bug fixes need to have an appropriate Fixes: tag.
Please repost with that added, thank you.
Powered by blists - more mailing lists