net/mlx5e: Refactor TIR configuration function
authorAya Levin <ayal@mellanox.com>
Sun, 28 Oct 2018 14:22:57 +0000 (16:22 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Dec 2018 00:00:33 +0000 (16:00 -0800)
commitd930ac796fdb3eed62b0053297a728ced8fd58b1
tree62f4138a1200bb9d38bf3be56a72c0060d19b09a
parent080d1b17fbc51789287cd8b2044a8cc9ec600e81
net/mlx5e: Refactor TIR configuration function

Refactor mlx5e_build_indir_tir_ctx_hash for better code re-use. TIR
stands for Transport Interface Receive, which is responsible for all
transport related operations on the receive side. Added a
static array with TIR default configuration values. This separates
configuration values from command setting, which is needed for
downstream patch.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c