Lines Matching refs:accel_attrs
1575 struct mlx5_accel_esp_xfrm_attrs accel_attrs = {}; in mlx5_ib_create_flow_action_esp() local
1615 memcpy(&accel_attrs.keymat.aes_gcm.aes_key, &aes_gcm->aes_key, in mlx5_ib_create_flow_action_esp()
1616 sizeof(accel_attrs.keymat.aes_gcm.aes_key)); in mlx5_ib_create_flow_action_esp()
1617 accel_attrs.keymat.aes_gcm.key_len = aes_gcm->key_len * 8; in mlx5_ib_create_flow_action_esp()
1618 memcpy(&accel_attrs.keymat.aes_gcm.salt, &aes_gcm->salt, in mlx5_ib_create_flow_action_esp()
1619 sizeof(accel_attrs.keymat.aes_gcm.salt)); in mlx5_ib_create_flow_action_esp()
1620 memcpy(&accel_attrs.keymat.aes_gcm.seq_iv, &aes_gcm->iv, in mlx5_ib_create_flow_action_esp()
1621 sizeof(accel_attrs.keymat.aes_gcm.seq_iv)); in mlx5_ib_create_flow_action_esp()
1622 accel_attrs.keymat.aes_gcm.icv_len = aes_gcm->icv_len * 8; in mlx5_ib_create_flow_action_esp()
1623 accel_attrs.keymat.aes_gcm.iv_algo = MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ; in mlx5_ib_create_flow_action_esp()
1624 accel_attrs.keymat_type = MLX5_ACCEL_ESP_KEYMAT_AES_GCM; in mlx5_ib_create_flow_action_esp()
1626 accel_attrs.esn = attr->esn; in mlx5_ib_create_flow_action_esp()
1628 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED; in mlx5_ib_create_flow_action_esp()
1630 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_create_flow_action_esp()
1633 accel_attrs.action |= MLX5_ACCEL_ESP_ACTION_ENCRYPT; in mlx5_ib_create_flow_action_esp()
1636 mlx5_accel_esp_create_xfrm(mdev->mdev, &accel_attrs, flags); in mlx5_ib_create_flow_action_esp()
1657 struct mlx5_accel_esp_xfrm_attrs accel_attrs; in mlx5_ib_modify_flow_action_esp() local
1677 memcpy(&accel_attrs, &maction->esp_aes_gcm.ctx->attrs, in mlx5_ib_modify_flow_action_esp()
1678 sizeof(accel_attrs)); in mlx5_ib_modify_flow_action_esp()
1680 accel_attrs.esn = attr->esn; in mlx5_ib_modify_flow_action_esp()
1682 accel_attrs.flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
1684 accel_attrs.flags &= ~MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5_ib_modify_flow_action_esp()
1687 &accel_attrs); in mlx5_ib_modify_flow_action_esp()