[dpdk-dev] [PATCH] net/mlx5: fix selection between encap and decap

Raslan Darawsheh rasland at mellanox.com
Thu Nov 21 15:39:34 CET 2019


Hi,
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Ori Kam
> Sent: Thursday, November 21, 2019 3:19 PM
> To: Matan Azrad <matan at mellanox.com>; Shahaf Shuler
> <shahafs at mellanox.com>; Slava Ovsiienko <viacheslavo at mellanox.com>
> Cc: dev at dpdk.org; Ori Kam <orika at mellanox.com>; Dekel Peled
> <dekelp at mellanox.com>; Bing Zhao <bingz at mellanox.com>
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix selection between encap and
> decap
> 
> The current raw_encap function selects if to decap or encap
> based on the egress/ingress attribute. This concepts doesn't work
> in case of FDB since all flows are considered ingress.
> 
> To solve this issue we moved to check the encap size.
> if the encap size is larger then eth + ipv4 it means we are
> trying to encap.
> 
> Fixes: 8ba9eee4ce32 ("net/mlx5: add raw data encap/decap to Direct Verbs")
> Cc: dekelp at mellanox.com
> Cc: bingz at mellanox.com
> 
> Signed-off-by: Ori Kam <orika at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_flow_dv.c | 37 +++++++++++++++++++---------------
> ---
>  1 file changed, 19 insertions(+), 18 deletions(-)
> 

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh



More information about the dev mailing list