Skip to content

Commit 05564d0

Browse files
aviadyeSaeed Mahameed
authored andcommitted
net/mlx5: Add flow-steering commands for FPGA IPSec implementation
In order to add a context to the FPGA, we need to get both the software transform context (which includes the keys, etc) and the source/destination IPs (which are included in the steering rule). Therefore, we register new set of firmware like commands for the FPGA. Each time a rule is added, the steering core infrastructure calls the FPGA command layer. If the rule is intended for the FPGA, it combines the IPs information with the software transformation context and creates the respective hardware transform. Afterwards, it calls the standard steering command layer. Signed-off-by: Aviad Yehezkel <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent d6c4f02 commit 05564d0

File tree

7 files changed

+770
-0
lines changed

7 files changed

+770
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,10 @@ void mlx5_accel_esp_destroy_xfrm(struct mlx5_accel_esp_xfrm *xfrm)
100100
mlx5_fpga_esp_destroy_xfrm(xfrm);
101101
}
102102
EXPORT_SYMBOL_GPL(mlx5_accel_esp_destroy_xfrm);
103+
104+
int mlx5_accel_esp_modify_xfrm(struct mlx5_accel_esp_xfrm *xfrm,
105+
const struct mlx5_accel_esp_xfrm_attrs *attrs)
106+
{
107+
return mlx5_fpga_esp_modify_xfrm(xfrm, attrs);
108+
}
109+
EXPORT_SYMBOL_GPL(mlx5_accel_esp_modify_xfrm);

0 commit comments

Comments
 (0)