net/mlx5: fix compilation issue for some architectures

Message ID 1548685334-17260-1-git-send-email-viacheslavo@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Shahaf Shuler
Headers
Series net/mlx5: fix compilation issue for some architectures |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS

Commit Message

Slava Ovsiienko Jan. 28, 2019, 2:22 p.m. UTC
  Added <rte_cycles.h> inclusion, was not included on some
building setups (ARMv8).

Fixes: 61fea2920403 ("net/mlx5: fix VXLAN port registration race condition")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
 drivers/net/mlx5/mlx5_flow_tcf.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Shahaf Shuler Jan. 29, 2019, 5:37 a.m. UTC | #1
Monday, January 28, 2019 4:22 PM, Viacheslav Ovsiienko:
> Cc: dev@dpdk.org
> Subject: [PATCH] net/mlx5: fix compilation issue for some architectures
> 
> Added <rte_cycles.h> inclusion, was not included on some building setups
> (ARMv8).
> 
> Fixes: 61fea2920403 ("net/mlx5: fix VXLAN port registration race condition")
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

Applied to next-net-mlx, thanks. 

Ferruh, Thomas, 
This patch is to fix a previous patch wrongly applied, not new fix.
Appreciate if you can push to current release. 

> ---
>  drivers/net/mlx5/mlx5_flow_tcf.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/mlx5/mlx5_flow_tcf.c
> b/drivers/net/mlx5/mlx5_flow_tcf.c
> index e132a34..652270f 100644
> --- a/drivers/net/mlx5/mlx5_flow_tcf.c
> +++ b/drivers/net/mlx5/mlx5_flow_tcf.c
> @@ -28,6 +28,7 @@
>  #include <rte_flow.h>
>  #include <rte_malloc.h>
>  #include <rte_common.h>
> +#include <rte_cycles.h>
> 
>  #include "mlx5.h"
>  #include "mlx5_flow.h"
> --
> 1.8.3.1
  

Patch

diff --git a/drivers/net/mlx5/mlx5_flow_tcf.c b/drivers/net/mlx5/mlx5_flow_tcf.c
index e132a34..652270f 100644
--- a/drivers/net/mlx5/mlx5_flow_tcf.c
+++ b/drivers/net/mlx5/mlx5_flow_tcf.c
@@ -28,6 +28,7 @@ 
 #include <rte_flow.h>
 #include <rte_malloc.h>
 #include <rte_common.h>
+#include <rte_cycles.h>
 
 #include "mlx5.h"
 #include "mlx5_flow.h"