Home
last modified time | relevance | path

Searched refs:cmd_context (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dipsec.c292 struct mlx5_fpga_ipsec_cmd_context *cmd_context; in mlx5_fpga_ipsec_update_hw_sa() local
302 cmd_context = (struct mlx5_fpga_ipsec_cmd_context *) in mlx5_fpga_ipsec_update_hw_sa()
304 if (IS_ERR(cmd_context)) in mlx5_fpga_ipsec_update_hw_sa()
305 return PTR_ERR(cmd_context); in mlx5_fpga_ipsec_update_hw_sa()
307 err = mlx5_fpga_ipsec_cmd_wait(cmd_context); in mlx5_fpga_ipsec_update_hw_sa()
311 sa = (struct mlx5_ifc_fpga_ipsec_sa *)&cmd_context->command; in mlx5_fpga_ipsec_update_hw_sa()
312 if (sa->ipsec_sa_v1.sw_sa_handle != cmd_context->resp.sw_sa_handle) { in mlx5_fpga_ipsec_update_hw_sa()
315 ntohl(cmd_context->resp.sw_sa_handle)); in mlx5_fpga_ipsec_update_hw_sa()
320 kfree(cmd_context); in mlx5_fpga_ipsec_update_hw_sa()