]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit919b05c248b1c770d98f70fa62cd177d9d08b26a
treed0e3eb99fca8fd2b5ed684c07e5f4849e1ee78af
parent515be53b5f9390324a5b2db6fcae1780664abc3d
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