summaryrefslogtreecommitdiff
path: root/arch/riscv/net
diff options
context:
space:
mode:
authorNetanel Belgazal <netanel@amazon.com>2019-12-10 14:27:44 +0300
committerDavid S. Miller <davem@davemloft.net>2019-12-11 04:54:55 +0300
commit24dee0c7478d1a1e00abdf5625b7f921467325dc (patch)
tree821daa97021894df332802ff84c8e543bfcbebbf /arch/riscv/net
parentf1ce0a155723cc41d814b350b0e01998f82f7ec1 (diff)
downloadlinux-24dee0c7478d1a1e00abdf5625b7f921467325dc.tar.xz
net: ena: fix napi handler misbehavior when the napi budget is zero
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 Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Netanel Belgazal <netanel@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/riscv/net')
0 files changed, 0 insertions, 0 deletions