net/mlx5e: Add post_parse() op to tc action infrastructure
authorRoi Dayan <roid@nvidia.com>
Wed, 11 Aug 2021 11:19:56 +0000 (14:19 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Dec 2021 05:29:45 +0000 (21:29 -0800)
commitdd5ab6d115657a7f312893fdd40b3d187022b11d
tree2b19a7e874477771b4f0b08e0f9f7f8e03cccac9
parent6bcba1bdeda57cd36317f616253e387fb14e70ee
net/mlx5e: Add post_parse() op to tc action infrastructure

The post_parse() op should be called after the parse op was called
for all actions. It could be an action state is dependent on other
actions. In the new op an action can fail the parse if the state
is not valid anymore.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/act.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c