]> 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)
commit071192a1fbb15b62da2d7689ab9eec273af87228
treed0e3eb99fca8fd2b5ed684c07e5f4849e1ee78af
parentfcb8e26d2a8be5396eb2ac9f59a182eda0e45d1e
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