net/mlx5: fix meta field size for flow modify
authorAlexander Kozyrev <akozyrev@nvidia.com>
Thu, 13 May 2021 19:54:58 +0000 (22:54 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 18 May 2021 09:38:15 +0000 (11:38 +0200)
commite44ec39ca2c7c19632eca90841e57d7f636bd5c3
treed4c87e7385f89959bc6714682d5c3ef3c2261468
parent23233fd63a15e5cde5bae4f26f78f4d679033a7b
net/mlx5: fix meta field size for flow modify

The modify_field flow API assumes that the META item is 32 bits wide.
But the C register that is used for META item can be 16 or 32 bits
wide depending on kernel and firmware configurations.
Take this into consideration and use the appropriate META width.

Fixes: 641dbe4fb053 ("net/mlx5: support modify field flow action")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c