IB/mlx5: Pass mlx5_flow_act struct instead of multiple arguments
authorBoris Pismenny <borisp@mellanox.com>
Wed, 16 Aug 2017 06:33:30 +0000 (09:33 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 7 Mar 2018 06:06:11 +0000 (22:06 -0800)
commit075572d4b7aec1fcd6e1bd66ee8e0e06501f719f
tree0f5f93231e35df282ad2f17aed7c4f4dd91e3d4b
parent04e87170b0964d22c67245b739f56c3fe12fda54
IB/mlx5: Pass mlx5_flow_act struct instead of multiple arguments

Group and pass all function arguments of parse_flow_attr call in one
common struct mlx5_flow_act.

This patch passes all the action arguments of parse_flow_attr in one common
struct mlx5_flow_act. It allows us to scale the number of actions without adding
new arguments to the function.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Acked-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c