[v8,2/3] net/ice: change one member type of the pattern structure

Message ID 1571659612-46066-3-git-send-email-simei.su@intel.com (mailing list archive)
State Accepted, archived
Delegated to: xiaolong ye
Headers
Series net/ice: enable advanced RSS |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Simei Su Oct. 21, 2019, 12:06 p.m. UTC
  This patch changes a variable type from uint64_t to void pointer
to avoid compilation issues for converting a point to uint64_t
in i686 environment.

Signed-off-by: Simei Su <simei.su@intel.com>
---
 drivers/net/ice/ice_generic_flow.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Xiaolong Ye Oct. 21, 2019, 2:16 p.m. UTC | #1
On 10/21, Simei Su wrote:
>This patch changes a variable type from uint64_t to void pointer
>to avoid compilation issues for converting a point to uint64_t
>in i686 environment.
>
>Signed-off-by: Simei Su <simei.su@intel.com>
>---
> drivers/net/ice/ice_generic_flow.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/ice_generic_flow.h b/drivers/net/ice/ice_generic_flow.h
>index 098a687..b6e4ed0 100644
>--- a/drivers/net/ice/ice_generic_flow.h
>+++ b/drivers/net/ice/ice_generic_flow.h
>@@ -411,7 +411,7 @@ struct ice_pattern_match_item {
> 	enum rte_flow_item_type *pattern_list;
> 	/* pattern_list must end with RTE_FLOW_ITEM_TYPE_END */
> 	uint64_t input_set_mask;
>-	uint64_t meta;
>+	void *meta;
> };
> 
> typedef int (*engine_init_t)(struct ice_adapter *ad);
>-- 
>1.8.3.1
>

Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
  
Ferruh Yigit Oct. 21, 2019, 5:30 p.m. UTC | #2
On 10/21/2019 1:06 PM, Simei Su wrote:
> This patch changes a variable type from uint64_t to void pointer
> to avoid compilation issues for converting a point to uint64_t
> in i686 environment.
> 
> Signed-off-by: Simei Su <simei.su@intel.com>

Squashed into relevant commit in next-net, thanks.
  

Patch

diff --git a/drivers/net/ice/ice_generic_flow.h b/drivers/net/ice/ice_generic_flow.h
index 098a687..b6e4ed0 100644
--- a/drivers/net/ice/ice_generic_flow.h
+++ b/drivers/net/ice/ice_generic_flow.h
@@ -411,7 +411,7 @@  struct ice_pattern_match_item {
 	enum rte_flow_item_type *pattern_list;
 	/* pattern_list must end with RTE_FLOW_ITEM_TYPE_END */
 	uint64_t input_set_mask;
-	uint64_t meta;
+	void *meta;
 };
 
 typedef int (*engine_init_t)(struct ice_adapter *ad);