projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb8e9fa
)
net/mlx5e: simplify condition after napi budget handling change
author
Jakub Kicinski
<kuba@kernel.org>
Tue, 6 Jun 2023 07:12:19 +0000
(
00:12
-0700)
committer
Saeed Mahameed
<saeedm@nvidia.com>
Wed, 7 Jun 2023 21:00:45 +0000
(14:00 -0700)
Since recent commit budget can't be 0 here.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
index
fbb2d96
..
a7d9b7c
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
@@
-207,7
+207,7
@@
int mlx5e_napi_poll(struct napi_struct *napi, int budget)
}
ch_stats->aff_change++;
aff_change = true;
- if (
budget &&
work_done == budget)
+ if (work_done == budget)
work_done--;
}