[PATCH] net/mlx5: fix tunnel header with IPIP offload

Raslan Darawsheh rasland at nvidia.com
Tue Oct 25 15:53:12 CEST 2022


Hi,

> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw at nvidia.com>
> Sent: Thursday, October 20, 2022 3:56 PM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Ori Kam <orika at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; Lior Margalit <lmargalit at nvidia.com>
> Cc: dev at dpdk.org; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix tunnel header with IPIP offload
> 
> For the flows with multiple tunnel layers and containing tunnel decap and
> modify actions, for example:
> 
> ... / vxlan / eth / ipv4 proto is 4 / end actions raw_decap / modify_field / ...
> (note: proto 4 means we have the IP-over-IP tunnel in VXLAN payload)
> 
> We have added the multiple tunnel layers validation rejecting the flows like
> above mentioned one.
> 
> The hardware supports the above match combination till the inner IP-over-IP
> header (not including the last one), both for IP-over-IPv4 and IP-over-IPv6,
> so we should not blindly reject. Also, for the modify actions following the
> decap we should set the layer attributes correctly.
> 
> This patch reverts the below code changes to support the match, and adjusts
> the layers update in case of decap with outer tunnel header.
> 
> Fixes: fa06906a48ee ("net/mlx5: fix IPIP multi-tunnel validation")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>
> Acked-by: Slava Ovsiienko <viacheslavo at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list