]> git.droids-corp.org - dpdk.git/commitdiff
event/sw: remove unused inflight events count
authorConor Walsh <conor.walsh@intel.com>
Mon, 15 Nov 2021 17:58:53 +0000 (17:58 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 12:01:52 +0000 (13:01 +0100)
Reported by clang 13.
This patch removes the inflights variable from the sw_dump function
within the software section of the event driver as it is an unused but
set variable.

Bugzilla ID: 881
Fixes: c66baa68e453 ("event/sw: add dump function for easier debugging")
Cc: stable@dpdk.org
Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/event/sw/sw_evdev.c

index 070a4802e9898ee78f17a2a0c2fd5343b15c010c..fa72ceb94952856ee1673b74778324181c14dcbf 100644 (file)
@@ -711,7 +711,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f)
                        continue;
                }
                int affinities_per_port[SW_PORTS_MAX] = {0};
-               uint32_t inflights = 0;
 
                fprintf(f, "  Queue %d (%s)\n", i, q_type_strings[qid->type]);
                fprintf(f, "\trx   %"PRIu64"\tdrop %"PRIu64"\ttx   %"PRIu64"\n",
@@ -732,7 +731,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f)
                for (flow = 0; flow < RTE_DIM(qid->fids); flow++)
                        if (qid->fids[flow].cq != -1) {
                                affinities_per_port[qid->fids[flow].cq]++;
-                               inflights += qid->fids[flow].pcount;
                        }
 
                uint32_t port;