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

2021-07-06 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alexander Kozyrev > Sent: Monday, July 5, 2021 12:47 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad > Subject: [PATCH] net/mlx5: fix offset calculation for modify field action > > Offsets are not taken int

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

2021-07-05 Thread Alexander Kozyrev
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 speci