net/mlx5: fix suffix flow creation in metadata split
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Wed, 13 Nov 2019 08:27:45 +0000 (08:27 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:05 +0000 (17:36 +0100)
commitcec19a342f45ba5a9c8be9c4dc2a0faa89981b41
treee4ca3c4f9ab04dee0b2070f93ef97dc9c9787292
parent7f1517012b2b55e77ef9b6b6e705b20f1841b971
net/mlx5: fix suffix flow creation in metadata split

The variable cleanup was erroneously done before pointer usage.
The cleanup is moved to appropriate place, comment is clarified.

Fixes: 8d72fa668964 ("net/mlx5: share tag between meter and metadata")

Reported-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow.c