net/mlx5: DR, Change push vlan action sequence
authorAlex Vesker <valex@mellanox.com>
Mon, 13 Jul 2020 11:09:04 +0000 (14:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:06 +0000 (08:24 +0200)
commit2dc09fe97e235a59a82452548d5e15fc8bdd4349
treef15175466622329bfd15fde1a18f7b4d9d815a23
parente8bb7b4c812c77c1cc41a79526638d4c0ddd1049
net/mlx5: DR, Change push vlan action sequence

[ Upstream commit b206490940216542c68563699b279eed3c55107c ]

The DR TX state machine supports the following order:
modify header, push vlan and encapsulation.
Instead fs_dr would pass:
push vlan, modify header and encapsulation.

The above caused the rule creation to fail on invalid action
sequence provided error.

Fixes: 6a48faeeca10 ("net/mlx5: Add direct rule fs_cmd implementation")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c