Skip to content

Commit

Permalink
event/sw: fix device name in dump
Browse files Browse the repository at this point in the history
[ upstream commit ec70113a60039411c57f02a814291cefcbc35099 ]

The software eventdev PMD reports todo-fix-name as the
device name.

Fixes: c66baa6 ("event/sw: add dump function for easier debugging")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
  • Loading branch information
shemminger authored and cpaelzer committed Nov 11, 2022
1 parent 6768e64 commit d6cc3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/event/sw/sw_evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,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);
Expand Down

0 comments on commit d6cc3a3

Please sign in to comment.