Skip to contentSkip to conversation

sw_evdev: report correct device name

PATCH In review Stephen Hemminger 3 participants 3 messages Jul 13, 2022 – Sep 13, 2022

lore
Share & tools
lore
#0 lore raw

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.

Fixes c66baa68e453 ("event/sw: add dump function for easier debugging")
---
 drivers/event/sw/sw_evdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/event/sw/sw_evdev.c +2 -2
index f93313b31b5c..c9efe35bf428 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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")

Simple fix, but does what it needs! Thanks;

<snip diff>

Acked-by Harry van Haaren
#2 lore raw
Quoted 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 name

The 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")

Simple fix, but does what it needs! Thanks;

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.

Fixes c66baa68e453 ("event/sw: add dump function for easier debugging")
Quoted 2 lines

<snip diff>