1 Reply Latest reply on Jun 24, 2016 8:33 AM by Carlos_A

    Question about qat_engine_init

    intel524 Community Member

      I have a question about developing Intel QAT Application.

      Can you please help us on this issue?

       

      I want to develop NGINX Application that accelerate SSL processing using QAT Engine and OpenSSL 1.1.0 pre5 by EVENT_DRIVEN.

      It is listed in a document as follows:

       

        * It must be sent if required after engine creation but before engine initialization. It should not be sent after engine initialization.

       

      I think that "Engine initialization" is Engine_init.

      Because qat_engine_init which is called by Engine_init finished all in the following logics, after I can not acquire FD using GET_POLLIG_FD.

       

        /* Work around for fork case, finish engine in parent process */

        if(initiator_pid == 0) {

            qat_engine_finish(e);

            qat_inited = 0;

            keep_polling = 1;

        }

       

      In the qat_engine_init source comment, I think that this considers master/worker process like the nginx.

      Because qat_engine_init is called from "CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init);", it is called only once.

      In other words it is never called in worker because it is initialized in master.

      How should I initialize it?