sw_evdev: report correct device name
PATCH 1/1 sw_evdev: report correct device name
The software eventdev PMD reports todo-fix-name as the device name. Looks like simple fix.
--- drivers/event/sw/sw_evdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/event/sw/sw_evdev.c +2 -2
@@ -622,8 +622,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);
Signature · 1 line
2.35.1
Quoted 9 lines
-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Wednesday, July 13, 2022 7:25 PM
To: [email protected]
Cc: Stephen Hemminger <[email protected]>; Van Haaren, Harry <[email protected]>; Richardson, Bruce <[email protected]>; Hunt, David <[email protected]>
Subject: [PATCH]sw_evdev: report correct device name
Quoted 5 lines
The software eventdev PMD reports todo-fix-name as the device name. Looks like simple fix.
Fixes c66baa68e453 ("event/sw: add dump function for easier debugging")Signed-off-by Stephen Hemminger <[email protected]>
Simple fix, but does what it needs! Thanks;
<snip diff>
Jerin Jacob
Acked-by Harry van HaarenQuoted 13 lines · Harry
Quoted 13 lines
-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Wednesday, July 13, 2022 7:25 PM
To: [email protected]
Cc: Stephen Hemminger <[email protected]>; Van Haaren, Harry <[email protected]>; Richardson, Bruce <[email protected]>; Hunt, David <[email protected]>
Subject: [PATCH]sw_evdev: report correct device nameThe software eventdev PMD reports todo-fix-name as the device name. Looks like simple fix.
Quoted 6 lines
Quoted 2 lines
Fixes c66baa68e453 ("event/sw: add dump function for easier debugging")Signed-off-by Stephen Hemminger <[email protected]>Simple fix, but does what it needs! Thanks;
Acked-by Harry van Haaren <[email protected]>
Updated the git commit as follows to fix ./devtools/check-git-log.sh issues and applied to dpdk-next-net-eventdev/for-main. Thanks
event/sw: report correct device name
The software eventdev PMD reports todo-fix-name as the device name.
Quoted 2 lines
<snip diff>