net/mlx5: fix modify header action position
authorOri Kam <orika@mellanox.com>
Wed, 17 Apr 2019 20:01:45 +0000 (20:01 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:55 +0000 (14:51 +0200)
commit5a5e41f9b8f25146e51cf34802372b118f4b5394
treedd95efd3e9c292a257264e965e28ec1a9e380abd
parent3eb00443107296ce156a043a8f1865b0b0b56e1d
net/mlx5: fix modify header action position

According to RTE flow the action order should be the order that the
actions were given.
In the case of modify actions the position of the action was always
last.

This commit solves this issue by saving the position of the first modify
action, and then adds to this position the pointer to the modify action.

Fixes: 4bb14c83df95 ("net/mlx5: support modify header using Direct Verbs")
Cc: stable@dpdk.org
Signed-off-by: Ori Kam <orika@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c