Skip to contentSkip to conversation

rawdev: fix device naming

PATCH Applied Tomasz Duszynski 3 participants 3 messages Jul 24, 2023 – Oct 2, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rawdev: fix device naming

Use proper naming when dealing with a raw device.

Fixes c88b3f2558ed ("rawdev: introduce raw device library")
---
 lib/rawdev/rte_rawdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
lib/rawdev/rte_rawdev.c +1 -2
index dacaa60e22..474bdc9540 100644
@@ -505,8 +505,7 @@ rte_rawdev_pmd_allocate(const char *name, size_t dev_priv_size, int socket_id)
 	uint16_t dev_id;
 
 	if (rte_rawdev_pmd_get_named_dev(name) != NULL) {
-		RTE_RDEV_ERR("Event device with name %s already allocated!",
-			     name);
+		RTE_RDEV_ERR("Raw device with name %s already allocated!", name);
 		return NULL;
 	}
 
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 41 lines

-----Original Message-----
From: Tomasz Duszynski <[email protected]>
Sent: Monday, July 24, 2023 7:07 PM
To: [email protected]; Sachin Saxena <[email protected]>; Hemant Agrawal <[email protected]>; Shreyansh Jain <[email protected]>
Cc: [email protected]; [email protected]; Tomasz Duszynski <[email protected]>; [email protected]
Subject: [PATCH] rawdev: fix device naming
Importance: High

Use proper naming when dealing with a raw device.

Fixes c88b3f2558ed ("rawdev: introduce raw device library")
---
 lib/rawdev/rte_rawdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
lib/rawdev/rte_rawdev.c index renamed from lib/rawdev/rte_rawdev.c +0 -0

dacaa60e22..474bdc9540 100644

lib/rawdev/rte_rawdev.c +1 -2
@@ -505,8 +505,7 @@ rte_rawdev_pmd_allocate(const char *name, size_t
 dev_priv_size, int socket_id)
 	uint16_t dev_id;
 
 	if (rte_rawdev_pmd_get_named_dev(name) != NULL) {
-		RTE_RDEV_ERR("Event device with name %s already
 allocated!",
-			     name);
+		RTE_RDEV_ERR("Raw device with name %s already
 allocated!", name);
lib/rawdev/rte_rawdev.c +0 -1
 		return NULL;
 	}
 
--

2.34.1