diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-06-06 09:12:19 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-06-07 23:00:45 +0200 |
commit | 803ea346bd3ff1ac80fc65cf5899c0ad045d1788 (patch) | |
tree | 6efd19f7ff8b6b7055bfa6fe0d7c986c50da7681 | |
parent | mlx5/core: E-Switch, Allocate ECPF vport if it's an eswitch manager (diff) | |
download | linux-803ea346bd3ff1ac80fc65cf5899c0ad045d1788.tar.xz linux-803ea346bd3ff1ac80fc65cf5899c0ad045d1788.zip |
net/mlx5e: simplify condition after napi budget handling change
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>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c index fbb2d963fb7e..a7d9b7cb4297 100644 --- 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--; } |