net/mlx5: Add helper to initialize a flow steering actions struct instance
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 1 Feb 2017 17:01:18 +0000 (19:01 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Mar 2017 12:34:01 +0000 (15:34 +0300)
commite753b2b50dc3c6582e9d5971555693db41a6d821
treed0e3eb99fca8fd2b5ed684c07e5f4849e1ee78af
parentaa0cbbae5d360ea23a15038d24f6f7c9573eecaf
net/mlx5: Add helper to initialize a flow steering actions struct instance

There are bunch of places in the code where the intermediate struct
that keeps the elements related to flow actions is initialized with
the same default values. Put that into a small DECLARE type helper.

This patch doesn't change any functionality.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
include/linux/mlx5/fs.h