DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ethdev: fix flow API item/action name conversion
@ 2018-10-07 15:38 Mordechay Haimovsky
  2018-10-07 16:22 ` [dpdk-dev] [PATCH v1] " Mordechay Haimovsky
  0 siblings, 1 reply; 8+ messages in thread
From: Mordechay Haimovsky @ 2018-10-07 15:38 UTC (permalink / raw)
  To: Adrien Mazarguil, Shahaf Shuler, orika; +Cc: dev, Mordechay Haimovsky

This patch fixes a typecast bug found in rte_flow_conv_name routine
used in rte_flow item/action name conversion.

Fixes: ae6b2cf49505 ("ethdev: add flow API item/action name conversion")

Signed-off-by: Moti Haimovsky <motih@mellanox.com>
---
 lib/librte_ethdev/rte_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c
index 9c56a97..21a4286 100644
--- a/lib/librte_ethdev/rte_flow.c
+++ b/lib/librte_ethdev/rte_flow.c
@@ -767,7 +767,7 @@ enum rte_flow_conv_item_spec_type {
 		{ rte_flow_desc_action, RTE_DIM(rte_flow_desc_action), },
 	};
 	const struct desc_info *const info = &info_rep[!!is_action];
-	unsigned int type = (uintptr_t)src;
+	unsigned int type = *(const unsigned int *)src;
 
 	if (type >= info->num)
 		return rte_flow_error_set
-- 
1.8.3.1

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

end of thread, other threads:[~2018-10-11 10:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-07 15:38 [dpdk-dev] [PATCH] ethdev: fix flow API item/action name conversion Mordechay Haimovsky
2018-10-07 16:22 ` [dpdk-dev] [PATCH v1] " Mordechay Haimovsky
2018-10-07 16:31   ` Ori Kam
2018-10-09 13:21     ` Ferruh Yigit
2018-10-09 13:38       ` Ferruh Yigit
2018-10-09 13:54       ` Adrien Mazarguil
2018-10-11 10:14         ` Ferruh Yigit
2018-10-11 10:36           ` Mordechay Haimovsky

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).