[dpdk-dev] [PATCH] net/mlx5: fix offset calculation for modify field action

Raslan Darawsheh rasland at nvidia.com
Tue Jul 6 14:46:24 CEST 2021


Hi,

> -----Original Message-----
> From: Alexander Kozyrev <akozyrev at nvidia.com>
> Sent: Monday, July 5, 2021 12:47 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Slava
> Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad <matan at nvidia.com>
> Subject: [PATCH] net/mlx5: fix offset calculation for modify field action
> 
> Offsets are not taken into account during MAC addresses
> manipulation for the MODIFY_FIELD action. That leads to
> a wrong split between 0-15 and 16-47 bits and corrupted
> data being copied to/from MAC addresses. Use both source
> and destination offsets to calcucate the proper modify
> header action specification.
> 
> Fixes: fdd0c046f4 ("net/mlx5: fix modify field action order for MAC")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list