net/mlx5: Kconfig, Better organize compilation flags
Always contain all acceleration functions declarations in 'accel' files, independent to the flags setting. For this, introduce new flags CONFIG_FPGA_{IPSEC/TLS} and use stubs where needed. This obsoletes the need for stubs in 'fpga' files. Remove them. Also use the new flags in Makefile, to decide whether to compile TLS-specific or IPSEC-specific objects, or not. Signed-off-by:Tariq Toukan <tariqt@mellanox.com> Signed-off-by:
Saeed Mahameed <saeedm@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/Kconfig 33 additions, 10 deletionsdrivers/net/ethernet/mellanox/mlx5/core/Kconfig
- drivers/net/ethernet/mellanox/mlx5/core/Makefile 4 additions, 3 deletionsdrivers/net/ethernet/mellanox/mlx5/core/Makefile
- drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.c 4 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.c
- drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.h 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.h
- drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c 3 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/accel/tls.c
- drivers/net/ethernet/mellanox/mlx5/core/accel/tls.h 1 addition, 3 deletionsdrivers/net/ethernet/mellanox/mlx5/core/accel/tls.h
- drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.h 0 additions, 75 deletionsdrivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.h
- include/linux/mlx5/accel.h 1 addition, 1 deletioninclude/linux/mlx5/accel.h
Loading
Please register or sign in to comment