intel / intel-ipsec-mb

Intel(R) Multi-Buffer Crypto for IPSec
BSD 3-Clause "New" or "Revised" License
289 stars 87 forks source link

added arch handlers in mb_mgr #13

Closed deadcafe closed 7 years ago

deadcafe commented 7 years ago
    I added an API handler for every arch (sse, avx, avx2, avx 512) to
    mb_mgr. These can be used with the following macros.
            MB_GET_NEXT_JOB ()
            MB_SUBMIT_JOB ()
            MB_SUBMIT_JOB_NOCHECK ()
            MB_GET_COMPLETED_JOB ()
            MB_FLUSH_JOB ()
            MB_QUEUE_SIZE ()
deadcafe commented 7 years ago

hi,

In this case, I think that it is easy to use while keeping compatibility.

tkanteck commented 7 years ago

Thanks for the patch and it is clever idea. Yes, there should be no problem with backward compatibility in this case. Let me think it through.

tkanteck commented 7 years ago

Thanks for your patch. Most of it has been merged into commit 532c9ad309206f49b98aab7aeeb9afefa63df2aa I have some other idea for ipsec_perf modification with regard to API and multiple architectures. I'll try to address it in the next few weeks.