DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] event/dlb2: fix name check in selftest
@ 2023-11-07 16:37 Bruce Richardson
  2023-11-07 17:14 ` Sevincer, Abdullah
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2023-11-07 16:37 UTC (permalink / raw)
  To: dev; +Cc: Abdullah Sevincer, stable, Bruce Richardson

When running the dlb2 selftests the driver name check was incorrect,
causing all checks to be skipped for a dlb2 device. We use the
"event_dlb2" only as a prefix check, as driver may have suffixes, e.g.
appear as "event_dlb2_pf".

Fixes: 6f1b82886e8a ("event/dlb2: add self-tests")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 drivers/event/dlb2/dlb2_selftest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/event/dlb2/dlb2_selftest.c b/drivers/event/dlb2/dlb2_selftest.c
index 1863ffe049..62aa11d981 100644
--- a/drivers/event/dlb2/dlb2_selftest.c
+++ b/drivers/event/dlb2/dlb2_selftest.c
@@ -1475,7 +1475,7 @@ do_selftest(void)
 int
 test_dlb2_eventdev(void)
 {
-	const char *dlb2_eventdev_name = "dlb2_event";
+	const char *dlb2_eventdev_name = "event_dlb2";
 	uint8_t num_evdevs = rte_event_dev_count();
 	int i, ret = 0;
 	int found = 0, skipped = 0, passed = 0, failed = 0;
@@ -1489,7 +1489,7 @@ test_dlb2_eventdev(void)
 
 		/* skip non-dlb2 event devices */
 		if (strncmp(info.driver_name, dlb2_eventdev_name,
-			    sizeof(*info.driver_name)) != 0) {
+				strlen(dlb2_eventdev_name)) != 0) {
 			skipped++;
 			continue;
 		}
-- 
2.39.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] event/dlb2: fix name check in selftest
  2023-11-07 16:37 [PATCH] event/dlb2: fix name check in selftest Bruce Richardson
@ 2023-11-07 17:14 ` Sevincer, Abdullah
  2023-11-09 10:34   ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Sevincer, Abdullah @ 2023-11-07 17:14 UTC (permalink / raw)
  To: Richardson, Bruce, dev; +Cc: stable

Acked-by: Abdullah Sevincer <abdullah.sevincer@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] event/dlb2: fix name check in selftest
  2023-11-07 17:14 ` Sevincer, Abdullah
@ 2023-11-09 10:34   ` Jerin Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2023-11-09 10:34 UTC (permalink / raw)
  To: Sevincer, Abdullah; +Cc: Richardson, Bruce, dev, stable

On Wed, Nov 8, 2023 at 7:02 AM Sevincer, Abdullah
<abdullah.sevincer@intel.com> wrote:
>
> Acked-by: Abdullah Sevincer <abdullah.sevincer@intel.com>


Applied to dpdk-next-eventdev/for-main. Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-09 10:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07 16:37 [PATCH] event/dlb2: fix name check in selftest Bruce Richardson
2023-11-07 17:14 ` Sevincer, Abdullah
2023-11-09 10:34   ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).