Intel® QuickAssist Technology
  • Legal Notices & Disclaimers
  • Introduction
  • Terminology
  • Release Notes - In-Tree
  • Release Notes - Linux*
  • Release Notes - VMware*
  • Getting Started Guide
  • Programmer’s Guide
    • About this Document
    • In-Tree vs. Out-of-Tree
    • Architecture
    • Infrastructure
    • Acceleration Driver
    • Configuration Files
    • Services
    • Supported APIs
      • Intel QuickAssist Technology APIs
      • Additional APIs
        • Dynamic Instance Allocation Functions
        • IOMMU Remapping Functions
        • Polling Functions
        • User Space Access Configuration Functions
        • Version Information Function
        • Reset Device Function
        • Thread-Less APIs
        • Compress and Verify (CnV) Related APIs
        • Heartbeat APIs
        • Device Polling APIs
        • Congestion Management APIs
        • Service Specific Polling APIs
        • Check Device Availability APIs
    • Virtualization
    • Secure Architecture Considerations
    • Revision History
  • Virtualization Deployment Guide
  • Performance Optimization Guide
  • QATlib User’s Guide
  • Application Notes
  • API Programmer’s Guide
  • Contact & Support
  • Documentation & Resources
Intel® QuickAssist Technology
  • Programmer’s Guide
  • Supported APIs
  • Additional APIs
  • Compress and Verify (CnV) Related APIs

Compress and Verify (CnV) Related APIs

APIs documented in this section are used for Compress and Verify. These APIs can be used in the user space application.

icp_sal_get_dc_error

This API allows the application to return the number of errors that occurred a particular number of times during the lifetime of a process.

Syntax

Cpa64U icp_sal_get_dc_error(Cpa8S dcError);

Parameters

dcError

Compression Error code exposed by CpaDcReqStatus enum in cpa_dc.h

Return Value

The icp_sal_get_dc_error function returns a 64 bit unsigned integer representing how many times the error type specified by Cpa8S dcError occurred in the current process.

icp_sal_dc_simulate_error

This API injects a simulated compression error for a defined number of compression or decompression requests. The simulated compression errors can only be applied to the traditional APIs. It must be called prior the APIs that perform the request. In the case of a simulated Compress and Verify error for a single request, the application would call icp_sal_dc_simulate_error() API as such: icp_sal_dc_simulate_error(1, CPA_DC_VERIFY_ERROR);

Syntax

CpaStatus icp_sal_dc_simulate_error(Cpa8U numErrors, Cpa8S dcError);

Parameters

numErrors

Number of simulated compression or decompression errors desired.

dcError

Desired error code to be returned by the compression or decompression API.

Return Value

The icp_sal_dc_simulate_error function returns one of the following codes:

CPA_STATUS_SUCCESS

Successful operation.

CPA_STATUS_FAIL

Indicates that an invalid error type was assigned to dcError parameter.

Previous Next

© Copyright Intel Corporation.