Skip to content

Commit

Permalink
net/mlx5: Remove ipsec vs. ipsec offload file separation
Browse files Browse the repository at this point in the history
The IPsec won't be initialized at all if device doesn't support IPsec
offload. It means that we can combine the ipsec.c and ipsec_offload.c
files to one file. Such change will allow us to remove ipsec_ops
indirection.

Link: https://lore.kernel.org/r/d0ac1fb7b14c10ae20a21ae17a393ee860c72ac3.1649232994.git.leonro@nvidia.com
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
  • Loading branch information
Leon Romanovsky committed Apr 9, 2022
1 parent 32313c6 commit 7e4e849
Show file tree
Hide file tree
Showing 11 changed files with 205 additions and 285 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ mlx5_core-$(CONFIG_MLX5_CORE_IPOIB) += ipoib/ipoib.o ipoib/ethtool.o ipoib/ipoib
# Accelerations & FPGA
#
mlx5_core-$(CONFIG_MLX5_IPSEC) += accel/ipsec_offload.o
mlx5_core-$(CONFIG_MLX5_ACCEL) += lib/crypto.o accel/ipsec.o
mlx5_core-$(CONFIG_MLX5_ACCEL) += lib/crypto.o

mlx5_core-$(CONFIG_MLX5_FPGA) += fpga/cmd.o fpga/core.o fpga/conn.o fpga/sdk.o

Expand Down
174 changes: 0 additions & 174 deletions drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.c

This file was deleted.

96 changes: 0 additions & 96 deletions drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.h

This file was deleted.

Loading

0 comments on commit 7e4e849

Please sign in to comment.