Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dipsec.c74 struct mlx5_fpga_ipsec_sa_ctx *sa_ctx; member
671 struct mlx5_fpga_ipsec_sa_ctx *sa_ctx; in mlx5_fpga_ipsec_create_sa_ctx() local
681 sa_ctx = kzalloc(sizeof(*sa_ctx), GFP_KERNEL); in mlx5_fpga_ipsec_create_sa_ctx()
682 if (!sa_ctx) in mlx5_fpga_ipsec_create_sa_ctx()
685 sa_ctx->dev = mdev; in mlx5_fpga_ipsec_create_sa_ctx()
690 &sa_ctx->hw_sa); in mlx5_fpga_ipsec_create_sa_ctx()
694 if (fpga_xfrm->sa_ctx) { /* multiple rules for same accel_xfrm */ in mlx5_fpga_ipsec_create_sa_ctx()
696 if (memcmp(&sa_ctx->hw_sa, &fpga_xfrm->sa_ctx->hw_sa, in mlx5_fpga_ipsec_create_sa_ctx()
697 sizeof(sa_ctx->hw_sa))) { in mlx5_fpga_ipsec_create_sa_ctx()
703 context = fpga_xfrm->sa_ctx; in mlx5_fpga_ipsec_create_sa_ctx()
[all …]