diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2017-11-01 01:34:00 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-11-10 09:39:20 +0300 |
commit | 2a8d6065e7b90ad9d5540650944d802b0f86bdfe (patch) | |
tree | 1986cbf86d179ac840942b2baad28333f76b463c /drivers/pcmcia/i82092aa.h | |
parent | d2aa060d40fa060e963f9a356d43481e43ba3dac (diff) | |
download | linux-2a8d6065e7b90ad9d5540650944d802b0f86bdfe.tar.xz |
net/mlx5e: Fix napi poll with zero budget
napi->poll can be called with budget 0, e.g. in netpoll scenarios
where the caller only wants to poll TX rings
(poll_one_napi@net/core/netpoll.c).
The below commit changed RX polling from "while" loop to "do {} while",
which caused to ignore the initial budget and handle at least one RX
packet.
This fixes the following warning:
[ 2852.049194] mlx5e_napi_poll+0x0/0x260 [mlx5_core] exceeded budget in poll
[ 2852.049195] ------------[ cut here ]------------
[ 2852.049195] WARNING: CPU: 0 PID: 25691 at net/core/netpoll.c:171 netpoll_poll_dev+0x18a/0x1a0
Fixes: 4b7dfc992514 ("net/mlx5e: Early-return on empty completion queues")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Reported-by: Martin KaFai Lau <kafai@fb.com>
Tested-by: Martin KaFai Lau <kafai@fb.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/pcmcia/i82092aa.h')
0 files changed, 0 insertions, 0 deletions