net/mlx5e: Convert TIR to a dedicated object
Code related to TIR is now encapsulated into a dedicated object and put into new files en/tir.{c,h}. All usages are converted. The Builder pattern is used to initialize a TIR. It allows to create a multitude of different configurations, turning on and off some specific features in different combinations, without having long parameter lists, initializers per usage and repeating code in initializers. Signed-off-by:Maxim Mikityanskiy <maximmi@nvidia.com> Reviewed-by:
Maor Dickman <maord@nvidia.com> Reviewed-by:
Tariq Toukan <tariqt@nvidia.com> Signed-off-by:
Saeed Mahameed <saeedm@nvidia.com>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/Makefile 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/Makefile
- drivers/net/ethernet/mellanox/mlx5/core/en.h 1 addition, 9 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en.h
- drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h 1 addition, 10 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
- drivers/net/ethernet/mellanox/mlx5/core/en/tir.c 188 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en/tir.c
- drivers/net/ethernet/mellanox/mlx5/core/en/tir.h 57 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en/tir.h
- drivers/net/ethernet/mellanox/mlx5/core/en/trap.c 8 additions, 19 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en/trap.c
- drivers/net/ethernet/mellanox/mlx5/core/en_common.c 0 additions, 28 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_common.c
- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 1 addition, 9 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
- drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 1 addition, 8 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c
- drivers/net/ethernet/mellanox/mlx5/core/en_main.c 136 additions, 186 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_main.c
- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 53 additions, 37 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_tc.c
Loading
Please register or sign in to comment