Lines Matching refs:accel_attrs
3862 struct mlx5_accel_esp_xfrm_attrs accel_attrs = {}; in mlx5_ib_create_flow_action_esp() local
3902 memcpy(&accel_attrs.keymat.aes_gcm.aes_key, &aes_gcm->aes_key, in mlx5_ib_create_flow_action_esp()
3903 sizeof(accel_attrs.keymat.aes_gcm.aes_key)); in mlx5_ib_create_flow_action_esp()
3904 accel_attrs.keymat.aes_gcm.key_len = aes_gcm->key_len * 8; in mlx5_ib_create_flow_action_esp()
3905 memcpy(&accel_attrs.keymat.aes_gcm.salt, &aes_gcm->salt, in mlx5_ib_create_flow_action_esp()
3906 sizeof(accel_attrs.keymat.aes_gcm.salt)); in mlx5_ib_create_flow_action_esp()
3907 memcpy(&accel_attrs.keymat.aes_gcm.seq_iv, &aes_gcm->iv, in mlx5_ib_create_flow_action_esp()
3908 sizeof(accel_attrs.keymat.aes_gcm.seq_iv)); in mlx5_ib_create_flow_action_esp()
3909 accel_attrs.keymat.aes_gcm.icv_len = aes_gcm->icv_len * 8; in mlx5_ib_create_flow_action_esp()
3910 accel_attrs.keymat.aes_gcm.iv_algo = MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ; in mlx5_ib_create_flow_action_esp()
3911 accel_attrs.keymat_type = MLX5_ACCEL_ESP_KEYMAT_AES_GCM; in mlx5_ib_create_flow_action_esp()
3913 accel_attrs.esn = attr->esn; in mlx5_ib_create_flow_action_esp()
3915 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED; in mlx5_ib_create_flow_action_esp()
3917 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_create_flow_action_esp()
3920 accel_attrs.action |= MLX5_ACCEL_ESP_ACTION_ENCRYPT; in mlx5_ib_create_flow_action_esp()
3923 mlx5_accel_esp_create_xfrm(mdev->mdev, &accel_attrs, flags); in mlx5_ib_create_flow_action_esp()
3944 struct mlx5_accel_esp_xfrm_attrs accel_attrs; in mlx5_ib_modify_flow_action_esp() local
3964 memcpy(&accel_attrs, &maction->esp_aes_gcm.ctx->attrs, in mlx5_ib_modify_flow_action_esp()
3965 sizeof(accel_attrs)); in mlx5_ib_modify_flow_action_esp()
3967 accel_attrs.esn = attr->esn; in mlx5_ib_modify_flow_action_esp()
3969 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
3971 accel_attrs.flags &= ~MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
3974 &accel_attrs); in mlx5_ib_modify_flow_action_esp()