<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Question about qat_engine_init in Embedded Intel® Core™ Processors</title>
    <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Question-about-qat-engine-init/m-p/206029#M930</link>
    <description>&lt;P&gt;I have a question about developing Intel QAT Application.&lt;/P&gt;&lt;P&gt;Can you please help us on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to develop NGINX Application that accelerate SSL processing using QAT Engine and OpenSSL 1.1.0 pre5 by EVENT_DRIVEN.&lt;/P&gt;&lt;P&gt;It is listed in a document as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  * It must be sent if required after engine creation but before engine initialization. It should not be sent after engine initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that "Engine initialization" is Engine_init.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  /* Work around for fork case, finish engine in parent process */&lt;/P&gt;&lt;P&gt;  if(initiator_pid == 0) {&lt;/P&gt;&lt;P&gt;      qat_engine_finish(e);&lt;/P&gt;&lt;P&gt;      qat_inited = 0;&lt;/P&gt;&lt;P&gt;      keep_polling = 1;&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qat_engine_init source comment, I think that this considers master/worker process like the nginx.&lt;/P&gt;&lt;P&gt;Because qat_engine_init is called from "CRYPTO_THREAD_run_once(&amp;amp;engine_lock_init, do_engine_lock_init);", it is called only once.&lt;/P&gt;&lt;P&gt;In other words it is never called in worker because it is initialized in master.&lt;/P&gt;&lt;P&gt;How should I initialize it?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 07:00:39 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2016-06-24T07:00:39Z</dc:date>
    <item>
      <title>Question about qat_engine_init</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Question-about-qat-engine-init/m-p/206029#M930</link>
      <description>&lt;P&gt;I have a question about developing Intel QAT Application.&lt;/P&gt;&lt;P&gt;Can you please help us on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to develop NGINX Application that accelerate SSL processing using QAT Engine and OpenSSL 1.1.0 pre5 by EVENT_DRIVEN.&lt;/P&gt;&lt;P&gt;It is listed in a document as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  * It must be sent if required after engine creation but before engine initialization. It should not be sent after engine initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that "Engine initialization" is Engine_init.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  /* Work around for fork case, finish engine in parent process */&lt;/P&gt;&lt;P&gt;  if(initiator_pid == 0) {&lt;/P&gt;&lt;P&gt;      qat_engine_finish(e);&lt;/P&gt;&lt;P&gt;      qat_inited = 0;&lt;/P&gt;&lt;P&gt;      keep_polling = 1;&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qat_engine_init source comment, I think that this considers master/worker process like the nginx.&lt;/P&gt;&lt;P&gt;Because qat_engine_init is called from "CRYPTO_THREAD_run_once(&amp;amp;engine_lock_init, do_engine_lock_init);", it is called only once.&lt;/P&gt;&lt;P&gt;In other words it is never called in worker because it is initialized in master.&lt;/P&gt;&lt;P&gt;How should I initialize it?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 07:00:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Question-about-qat-engine-init/m-p/206029#M930</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2016-06-24T07:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question about qat_engine_init</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Question-about-qat-engine-init/m-p/206030#M931</link>
      <description>&lt;P&gt;Hello intel524 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for contacting the Intel Embedded Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to help you, we suggest you review as a reference the information stated at the &lt;A href="https://github.com/01org/QAT_Engine/blob/master/e_qat.c"&gt;https://github.com/01org/QAT_Engine/blob/master/e_qat.c&lt;/A&gt; QAT_Engine/e_qat.c at master website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, you also can address this consultation as a reference to the &lt;A href="https://www.openssl.org/community/mailinglists.html"&gt;https://www.openssl.org/community/mailinglists.html&lt;/A&gt; OpenSSL  community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We hope that this information may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos_A . &lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:33:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Question-about-qat-engine-init/m-p/206030#M931</guid>
      <dc:creator>CarlosAM_INTEL</dc:creator>
      <dc:date>2016-06-24T15:33:32Z</dc:date>
    </item>
  </channel>
</rss>

