event/sw: fix device name in dump
The software eventdev PMD reports todo-fix-name as the
device name.
Fixes: c66baa68e4
("event/sw: add dump function for easier debugging")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
This commit is contained in:
parent
2b5c68956f
commit
ec70113a60
@ -623,8 +623,8 @@ sw_dump(struct rte_eventdev *dev, FILE *f)
|
||||
"Ordered", "Atomic", "Parallel", "Directed"
|
||||
};
|
||||
uint32_t i;
|
||||
fprintf(f, "EventDev %s: ports %d, qids %d\n", "todo-fix-name",
|
||||
sw->port_count, sw->qid_count);
|
||||
fprintf(f, "EventDev %s: ports %d, qids %d\n",
|
||||
dev->data->name, sw->port_count, sw->qid_count);
|
||||
|
||||
fprintf(f, "\trx %"PRIu64"\n\tdrop %"PRIu64"\n\ttx %"PRIu64"\n",
|
||||
sw->stats.rx_pkts, sw->stats.rx_dropped, sw->stats.tx_pkts);
|
||||
|
Loading…
Reference in New Issue
Block a user