net/mlx5: reorganize fate actions as union
authorSuanming Mou <suanmingm@mellanox.com>
Thu, 16 Apr 2020 08:34:22 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commit6fc183924bb19541341d558911604144c1206590
tree42ded3c2ad67d4c71868732da55016bcebd9c888
parentb88341ca35fc8eda9cd4bf2e796865544788f035
net/mlx5: reorganize fate actions as union

Currently, one flow only has one fate action, the fate actions members
in the flow struct can be reorganized as union to save the memory for
flow struct.

This commit reorganizes the fate actions as union, the act_flags helps
to identify the fate action type when flow destroys.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c