test/distributor: remove unused counter

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

Bugzilla ID: 881
Fixes: c0de0eb82e ("distributor: switch over to new API")
Cc: stable@dpdk.org

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>
This commit is contained in:
Conor Walsh 2021-11-15 17:58:50 +00:00 committed by David Marchand
parent e76eb560bc
commit ccbdaaa981

View File

@ -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);
@ -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;
}