Page MenuHomeFreeBSD

Add a new security/isal-kmod port.
ClosedPublic

Authored by jhb on Jun 29 2020, 10:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 4:46 PM
Unknown Object (File)
Tue, Oct 22, 9:25 AM
Unknown Object (File)
Oct 4 2024, 5:52 PM
Unknown Object (File)
Oct 3 2024, 7:39 PM
Unknown Object (File)
Sep 30 2024, 12:19 PM
Unknown Object (File)
Sep 26 2024, 11:24 AM
Unknown Object (File)
Sep 25 2024, 3:02 PM
Unknown Object (File)
Sep 22 2024, 11:15 AM

Details

Summary

This port builds a kernel crypto device driver which uses routines from
Intel's ISA-L crypto library to perform AES-GCM encryption and decryption.

Test Plan
  • make check-plist for the port
  • have tested the driver with KTLS + ktls_ocf.ko and with cryptocheck

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jun 29 2020, 10:57 PM

This might get some more testing of the driver before it should be committed, but this isn't a bad place to coordinate testing if others are interested in testing I suppose. On my wimpy little 4-core Haswell box KTLS with aesni was able to push about 35 Gbps in a simple https benchmark vs 41-42 Gbps with this module (and 42-43 Gbps with the KTLS-specific ktls-isa_l-crypto-kmod port).

security/isal-kmod/Makefile
14 ↗(On Diff #73894)

I think you want to tack on IGNORE_FreeBSD_11= ... and presumably IGNORE_FreeBSD_12= .... It's unfortunate that we don't have an ONLY_FOR_FreeBSD_13= since this probably won't build against, e.g., Dragonfly.

security/isal-kmod/Makefile
11 ↗(On Diff #73894)

If it's BSD3CLAUSE, why not base?

lwhsu added inline comments.
security/isal-kmod/pkg-descr
7 ↗(On Diff #73894)

Do you want to mention that the source of this port is from https://github.com/bsdjhb/ocf_isa_l and 01org is the upstream?

security/isal-kmod/Makefile
11 ↗(On Diff #73894)

It requires yasm or nasm to compile the assembly files which we don't have in base.

jhb marked 2 inline comments as done.Jul 16 2020, 5:47 PM
jhb added inline comments.
security/isal-kmod/Makefile
14 ↗(On Diff #73894)

It would need to be some kind of ONLY_FOR_FreeBSD_13+ to mean 13 and beyond. I think it's simpler to add the IGNORE for 11 and 12. OTOH, an ONLY_FOR_FreeBSD would perhaps be helpful.

security/isal-kmod/pkg-descr
7 ↗(On Diff #73894)

I added my repo as a WWW, not sure if I need words as well?

jhb marked 2 inline comments as done.
  • Address some review feedback.
  • Bump to a newer hash with cosmetic cleanups, NFC.
mat requested changes to this revision.Jul 21 2020, 12:29 PM
mat added inline comments.
security/isal-kmod/Makefile
30 ↗(On Diff #74533)

No need for that. And change the include at the end to bsd.port.mk.

security/isal-kmod/pkg-descr
7–8 ↗(On Diff #74533)

Only one WWW line supported.

This revision now requires changes to proceed.Jul 21 2020, 12:29 PM
jhb marked 2 inline comments as done.
  • Address feedback from mat@.

Is there a reason to not import this into base? The isa-l library is BSD-licensed and has a very small footprint.

In D25514#574176, @gbe wrote:

Is there a reason to not import this into base? The isa-l library is BSD-licensed and has a very small footprint.

The problem is that the isa-l library requires yasm to compile

In D25514#574176, @gbe wrote:

Is there a reason to not import this into base? The isa-l library is BSD-licensed and has a very small footprint.

The problem is that the isa-l library requires yasm to compile

Ah, okay, I have seen that yasm is also BSD-licensed, but importing a new compiler for a new library isn't worth the hassle.

This revision is now accepted and ready to land.Aug 3 2020, 12:13 PM
This revision was automatically updated to reflect the committed changes.