]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d81786bee7cc857625e0520680f5336f24fe148
tree62f4138a1200bb9d38bf3be56a72c0060d19b09a
parent9570e62cd5a68f15827629d850cdec5b9b20e72f
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