Lines Matching refs:accel_attrs
4196 struct mlx5_accel_esp_xfrm_attrs accel_attrs = {}; in mlx5_ib_create_flow_action_esp() local
4236 memcpy(&accel_attrs.keymat.aes_gcm.aes_key, &aes_gcm->aes_key, in mlx5_ib_create_flow_action_esp()
4237 sizeof(accel_attrs.keymat.aes_gcm.aes_key)); in mlx5_ib_create_flow_action_esp()
4238 accel_attrs.keymat.aes_gcm.key_len = aes_gcm->key_len * 8; in mlx5_ib_create_flow_action_esp()
4239 memcpy(&accel_attrs.keymat.aes_gcm.salt, &aes_gcm->salt, in mlx5_ib_create_flow_action_esp()
4240 sizeof(accel_attrs.keymat.aes_gcm.salt)); in mlx5_ib_create_flow_action_esp()
4241 memcpy(&accel_attrs.keymat.aes_gcm.seq_iv, &aes_gcm->iv, in mlx5_ib_create_flow_action_esp()
4242 sizeof(accel_attrs.keymat.aes_gcm.seq_iv)); in mlx5_ib_create_flow_action_esp()
4243 accel_attrs.keymat.aes_gcm.icv_len = aes_gcm->icv_len * 8; in mlx5_ib_create_flow_action_esp()
4244 accel_attrs.keymat.aes_gcm.iv_algo = MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ; in mlx5_ib_create_flow_action_esp()
4245 accel_attrs.keymat_type = MLX5_ACCEL_ESP_KEYMAT_AES_GCM; in mlx5_ib_create_flow_action_esp()
4247 accel_attrs.esn = attr->esn; in mlx5_ib_create_flow_action_esp()
4249 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED; in mlx5_ib_create_flow_action_esp()
4251 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_create_flow_action_esp()
4254 accel_attrs.action |= MLX5_ACCEL_ESP_ACTION_ENCRYPT; in mlx5_ib_create_flow_action_esp()
4257 mlx5_accel_esp_create_xfrm(mdev->mdev, &accel_attrs, flags); in mlx5_ib_create_flow_action_esp()
4278 struct mlx5_accel_esp_xfrm_attrs accel_attrs; in mlx5_ib_modify_flow_action_esp() local
4298 memcpy(&accel_attrs, &maction->esp_aes_gcm.ctx->attrs, in mlx5_ib_modify_flow_action_esp()
4299 sizeof(accel_attrs)); in mlx5_ib_modify_flow_action_esp()
4301 accel_attrs.esn = attr->esn; in mlx5_ib_modify_flow_action_esp()
4303 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
4305 accel_attrs.flags &= ~MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
4308 &accel_attrs); in mlx5_ib_modify_flow_action_esp()