Lines Matching refs:accel_attrs
1576 struct mlx5_accel_esp_xfrm_attrs accel_attrs = {}; in mlx5_ib_create_flow_action_esp() local
1616 memcpy(&accel_attrs.keymat.aes_gcm.aes_key, &aes_gcm->aes_key, in mlx5_ib_create_flow_action_esp()
1617 sizeof(accel_attrs.keymat.aes_gcm.aes_key)); in mlx5_ib_create_flow_action_esp()
1618 accel_attrs.keymat.aes_gcm.key_len = aes_gcm->key_len * 8; in mlx5_ib_create_flow_action_esp()
1619 memcpy(&accel_attrs.keymat.aes_gcm.salt, &aes_gcm->salt, in mlx5_ib_create_flow_action_esp()
1620 sizeof(accel_attrs.keymat.aes_gcm.salt)); in mlx5_ib_create_flow_action_esp()
1621 memcpy(&accel_attrs.keymat.aes_gcm.seq_iv, &aes_gcm->iv, in mlx5_ib_create_flow_action_esp()
1622 sizeof(accel_attrs.keymat.aes_gcm.seq_iv)); in mlx5_ib_create_flow_action_esp()
1623 accel_attrs.keymat.aes_gcm.icv_len = aes_gcm->icv_len * 8; in mlx5_ib_create_flow_action_esp()
1624 accel_attrs.keymat.aes_gcm.iv_algo = MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ; in mlx5_ib_create_flow_action_esp()
1625 accel_attrs.keymat_type = MLX5_ACCEL_ESP_KEYMAT_AES_GCM; in mlx5_ib_create_flow_action_esp()
1627 accel_attrs.esn = attr->esn; in mlx5_ib_create_flow_action_esp()
1629 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED; in mlx5_ib_create_flow_action_esp()
1631 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_create_flow_action_esp()
1634 accel_attrs.action |= MLX5_ACCEL_ESP_ACTION_ENCRYPT; in mlx5_ib_create_flow_action_esp()
1637 mlx5_accel_esp_create_xfrm(mdev->mdev, &accel_attrs, flags); in mlx5_ib_create_flow_action_esp()
1658 struct mlx5_accel_esp_xfrm_attrs accel_attrs; in mlx5_ib_modify_flow_action_esp() local
1678 memcpy(&accel_attrs, &maction->esp_aes_gcm.ctx->attrs, in mlx5_ib_modify_flow_action_esp()
1679 sizeof(accel_attrs)); in mlx5_ib_modify_flow_action_esp()
1681 accel_attrs.esn = attr->esn; in mlx5_ib_modify_flow_action_esp()
1683 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
1685 accel_attrs.flags &= ~MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
1688 &accel_attrs); in mlx5_ib_modify_flow_action_esp()