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

2021-06-17 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, June 16, 2021 5:43 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad > Subject: [PATCH] net/mlx5: fix modify field action order for MAC > > MAC addresses are split into 2 p

[dpdk-dev] [PATCH] net/mlx5: fix modify field action order for MAC

2021-06-16 Thread Alexander Kozyrev
MAC addresses are split into 2 parts inside Mellanox NIC: bits 0-15 are separate from bits 16-47. That makes a copy from another packet field tricky because any other field is aligned to 32 bits, not 16. This causes unexpected results when using the MODIFY_FIELD action with MAC addresses. Track cro