Skip to content

Commit

Permalink
test/distributor: remove unused counter
Browse files Browse the repository at this point in the history
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")
Cc: [email protected]

Reported-by: Liang Longfeng <[email protected]>
Signed-off-by: Conor Walsh <[email protected]>
Reviewed-by: David Marchand <[email protected]>
  • Loading branch information
conorwalsh-intel authored and david-marchand committed Nov 16, 2021
1 parent e76eb56 commit ccbdaaa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/test/test_distributor_perf.c
Original file line number Diff line number Diff line change
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 ccbdaaa

Please sign in to comment.