net/mlx5: fix modify field destination bit offset
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Wed, 17 Nov 2021 11:14:35 +0000 (13:14 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 17 Nov 2021 14:51:40 +0000 (15:51 +0100)
commita750169c4fa486192339e171fb7c0d8e350c4d35
tree21a57f3c5a2ce981c5d4dcf5dcddcbb97217e805
parentf550a49d499c60ad57d9444f602cb2eb378aa201
net/mlx5: fix modify field destination bit offset

If the modify field action requests the field copy/set transaction
from other field, the destination field hardware bit offset was
assigned incorrectly with non-zero byte offset, causing wrong
translations for the fields with sizes larger than 32 bits.

Fixes: 40c8fb1fd3b3 ("net/mlx5: update modify field action")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c