Intel® QAT加速卡之编程demo框架
阅读原文时间:2023年07月11日阅读:1
QAT demo流程框架

示例一:

代码路径:qat1.5.l.1.13.0-19\quickassist\lookaside\access_layer\src\sample_code\functional\sym\cipher_sample

    |-->cpa_cipher_sample_user.c
    |       main
    |           |-->  qaeMemInit
    |           |
    |           |-->  icp_sal_userStartMultiProcess
    |           |
    |           |-->  cipherSample
    |           |
    |           |-->  icp_sal_userStop
    |           |
    |           |-->  qaeMemDestroy
    |
    |
    |
    |->cpa_cipher_sample.c
            symCallback
            cipherPerformOp
            cipherSample(void)
                |-->  sampleCyGetInstance
                |
                |-->  cpaCyStartInstance
                |
                |-->  cpaCySetAddressTranslation
                |
                |-->  sampleCyStartPolling
                |
                |-->  cpaCySymSessionCtxGetSize
                |
                |-->  PHYS_CONTIG_ALLOC
                |
                |-->  cpaCySymInitSession
                |
                |-->  cipherPerformOp
                |
                |-->  cpaCySymQueryStats64
                |
                |-->  PHYS_CONTIG_FREE
                |
                |-->  sampleCyStopPolling
                |
                |-->  cpaCyStopInstance

示例二:

代码路径:qat1.5.l.1.13.0-19\quickassist\lookaside\access_layer\src\sample_code\functional\asym\diffie_hellman_sample

    |-->cpa_cipher_sample_user.c
    |       main
    |           |-->  qaeMemInit
    |           |
    |           |-->  icp_sal_userStartMultiProcess
    |           |
    |           |-->  cipherSample
    |           |
    |           |-->  icp_sal_userStop
    |           |
    |           |-->  qaeMemDestroy
    |
    |
    |
    |->cpa_cipher_sample.c
            symCallback
            cipherPerformOp
            cipherSample(void)
                |-->  sampleCyGetInstance
                |
                |-->  cpaCyStartInstance
                |
                |-->  cpaCySetAddressTranslation
                |
                |-->  sampleCyStartPolling
                |
                |-->  cpaCySymSessionCtxGetSize
                |
                |-->  PHYS_CONTIG_ALLOC
                |
                |-->  cpaCySymInitSession
                |
                |-->  cipherPerformOp
                |
                |-->  cpaCySymQueryStats64
                |
                |-->  PHYS_CONTIG_FREE
                |
                |-->  sampleCyStopPolling
                |
                |-->  cpaCyStopInstance

目前资料基本全是Intel网关提供的,中文版的几乎没有,准备私下整理下文档,如果有需要,可评论留言。

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章