> -----Original Message----- > From: Dekel Peled <dek...@mellanox.com> > Sent: Thursday, July 18, 2019 22:42 > To: Yongseok Koh <ys...@mellanox.com>; Slava Ovsiienko > <viachesl...@mellanox.com>; Shahaf Shuler <shah...@mellanox.com> > Cc: Jack Min <jack...@mellanox.com>; Ori Kam <or...@mellanox.com>; > dev@dpdk.org > Subject: [PATCH] net/mlx5: fix define of added tunnel layer bit > > The new define MLX5_FLOW_LAYER_IPIP is using the same value as existing > define MLX5_FLOW_LAYER_GRE_KEY. > This patch updates the values to be in order. > > Fixes: 1b5624cd9062 ("net/mlx5: support IP-in-IP tunnel") > Signed-off-by: Dekel Peled <dek...@mellanox.com> Acked-by: Viacheslav Ovsiienko <viachesl...@mellanox.com>
> --- > drivers/net/mlx5/mlx5_flow.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h > index ece967a..3f96bec 100644 > --- a/drivers/net/mlx5/mlx5_flow.h > +++ b/drivers/net/mlx5/mlx5_flow.h > @@ -58,8 +58,8 @@ > #define MLX5_FLOW_LAYER_ICMP6 (1u << 19) #define > MLX5_FLOW_LAYER_GRE_KEY (1u << 20) > > -#define MLX5_FLOW_LAYER_IPIP (1u << 20) -#define > MLX5_FLOW_LAYER_IPV6_ENCAP (1u << 21) > +#define MLX5_FLOW_LAYER_IPIP (1u << 21) #define > +MLX5_FLOW_LAYER_IPV6_ENCAP (1u << 22) > > /* Outer Masks. */ > #define MLX5_FLOW_LAYER_OUTER_L3 \ > -- > 1.8.3.1