[dpdk-stable] [PATCH v2] [18.11] net/mlx5: fix selection between encap and decap
Kevin Traynor
ktraynor at redhat.com
Tue Dec 8 14:38:00 CET 2020
On 08/12/2020 12:47, Viacheslav Ovsiienko wrote:
> From: Ori Kam <orika at mellanox.com>
>
> [ upstream commit 9e0d81c1a13cac520a535f259e7d3c9132770e14 ]
>
> 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")
>
> Signed-off-by: Ori Kam <orika at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>
> ---
> drivers/net/mlx5/mlx5_flow_dv.c | 28 +++++++++++++---------------
> 1 file changed, 13 insertions(+), 15 deletions(-)
Applied, thanks.
More information about the stable
mailing list