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 <mo...@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