Skip to content

Commit

Permalink
test/distributor: remove unused counter
Browse files Browse the repository at this point in the history
[ upstream commit ccbdaaa ]

Reported by clang 13.
This patch fixes unused but set variables in the distributor test perf.

Bugzilla ID: 881
Fixes: c0de0eb ("distributor: switch over to new API")

Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
conorwalsh-intel authored and cpaelzer committed Nov 30, 2021
1 parent 36e063b commit 7866535
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/test/test_distributor_perf.c
Expand Up @@ -108,7 +108,6 @@ static int
handle_work(void *arg)
{
struct rte_distributor *d = arg;
unsigned int count = 0;
unsigned int num = 0;
int i;
unsigned int id = __atomic_fetch_add(&worker_idx, 1, __ATOMIC_RELAXED);
Expand All @@ -120,11 +119,9 @@ handle_work(void *arg)
num = rte_distributor_get_pkt(d, id, buf, buf, num);
while (!quit) {
worker_stats[id].handled_packets += num;
count += num;
num = rte_distributor_get_pkt(d, id, buf, buf, num);
}
worker_stats[id].handled_packets += num;
count += num;
rte_distributor_return_pkt(d, id, buf, num);
return 0;
}
Expand Down

0 comments on commit 7866535

Please sign in to comment.