History log of /freebsd/sys/dev/safexcel/safexcel.c (Results 1 – 25 of 27)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remov

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

show more ...


Revision tags: release/14.0.0
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix

show more ...


Revision tags: release/13.2.0, release/12.4.0
# c86b1d99 15-Sep-2022 Gordon Bergling <gbe@FreeBSD.org>

safexcel: Fix a typo in a source code comment

- s/paramters/parameters/

MFC after: 3 days


Revision tags: release/13.1.0
# c8d40269 09-May-2022 John Baldwin <jhb@FreeBSD.org>

safexcel: Remove unused devclass argument to DRIVER_MODULE.


# 4bae6599 18-Dec-2021 Mateusz Guzik <mjg@FreeBSD.org>

safexcel: plug set-but-not-used vars

Sponsored by: Rubicon Communications, LLC ("Netgate")


# 6e17a2e0 09-Dec-2021 John Baldwin <jhb@FreeBSD.org>

crypto: Validate AES-GCM IV length in check_csp().

This centralizes the check for valid nonce lengths for AES-GCM.

While here, remove some duplicate checks for valid AES-GCM tag lengths
from ccp(4)

crypto: Validate AES-GCM IV length in check_csp().

This centralizes the check for valid nonce lengths for AES-GCM.

While here, remove some duplicate checks for valid AES-GCM tag lengths
from ccp(4) and ccr(4).

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33194

show more ...


Revision tags: release/12.3.0
# 60c95f31 24-Nov-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Fix -Wunused-but-set-variable warnings

MFC after: 1 week
Sponsored by: The FreeBSD Foundation


# 36e4dcf4 18-Oct-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Set the context record unconditionally

The condition added in commit 5bdb8b273aaf excludes plain SHA
transforms, so for such sessions crypto operations would return
incorrect results.

Fix

safexcel: Set the context record unconditionally

The condition added in commit 5bdb8b273aaf excludes plain SHA
transforms, so for such sessions crypto operations would return
incorrect results.

Fixes: 5bdb8b273aaf ("safexcel: Maintain per-session context records")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

show more ...


# 366ae4a0 06-Oct-2021 John Baldwin <jhb@FreeBSD.org>

safexcel: Support truncated tags for AES-CCM.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32119


# 2ec2e4df 06-Oct-2021 John Baldwin <jhb@FreeBSD.org>

safexcel: Support multiple nonce lengths for AES-CCM.

Reviewed by: markj
Sponsored by: Chelsio Communications, The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32118


# d8787d4f 26-Jul-2021 Mark Johnston <markj@FreeBSD.org>

crypto: Constify all transform descriptors

No functional change intended.

Reviewed by: ae, jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.

crypto: Constify all transform descriptors

No functional change intended.

Reviewed by: ae, jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31196

show more ...


Revision tags: release/13.0.0
# 2fccd4f9 27-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Disallow unsupported buffer layouts

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")


# 5bdb8b27 18-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Maintain per-session context records

The context record contains key material precomputed by the driver at
session creation time. Rather than storing various components of the
context rec

safexcel: Maintain per-session context records

The context record contains key material precomputed by the driver at
session creation time. Rather than storing various components of the
context record in each session, go a bit further and store the full
context record image so that safexcel_process() can simply copy the
image into each request submitted to the hardware. This simplifies the
data path and eliminates a bunch of unnecessary conditional logic that
was getting executed for each request.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (Netgate)

show more ...


# 1a6ffed5 18-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Simplify request allocation

Rather than preallocating a set of requests and moving them between
queues during state transitions, maintain a shadow of the command
descriptor ring to track t

safexcel: Simplify request allocation

Rather than preallocating a set of requests and moving them between
queues during state transitions, maintain a shadow of the command
descriptor ring to track the driver context of each request. This is
simpler and requires less synchronization between safexcel_process() and
the ring interrupt handler.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (Netgate)

show more ...


# b7e27af3 18-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Handle command/result descriptor exhaustion gracefully

Rather than returning a hard error in this case, return ERESTART so that
upper layers get a chance to retry the request (or drop it,

safexcel: Handle command/result descriptor exhaustion gracefully

Rather than returning a hard error in this case, return ERESTART so that
upper layers get a chance to retry the request (or drop it, depending on
the desired policy).

This case is hard to hit due to the somewhat low bound on queued
requests, but that will no longer be true after an upcoming change.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (Netgate)

show more ...


# 0371c3fa 18-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Add counters for some resource exhaustion conditions

This is useful when analyzing performance problems.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (Netgate)


# e934d455 18-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Dispatch requests to the current CPU's ring

This gives better performance in some tests than the previous policy of
statically binding each session to a ring.

MFC after: 1 week
Sponsored

safexcel: Dispatch requests to the current CPU's ring

This gives better performance in some tests than the previous policy of
statically binding each session to a ring.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (Netgate)

show more ...


# 092cf8d6 08-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Fix a race around unblocking of crypto ops

safexcel_ring_intr() could fail to observed that sc_blocked is set after
completing all outstanding ops for a ring, in which case blocked ops
wou

safexcel: Fix a race around unblocking of crypto ops

safexcel_ring_intr() could fail to observed that sc_blocked is set after
completing all outstanding ops for a ring, in which case blocked ops
would be deferred forever.

Request structures are managed by individual rings, so move the
"blocked" flag into the per-ring state block and use the ring lock to
synchronize with safexcel_process(). Remove sc_mtx since it is now
unused.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)

show more ...


# 8ba6acbb 08-Jan-2021 Mark Johnston <markj@FreeBSD.org>

safexcel: Stop using a stack buffer for the ring lock name

mtx_init() does not make a copy of the name so the buffer must be valid
for the lifetime of the driver instance. Store each ring's lock's

safexcel: Stop using a stack buffer for the ring lock name

mtx_init() does not make a copy of the name so the buffer must be valid
for the lifetime of the driver instance. Store each ring's lock's name
in the ring structure.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)

show more ...


Revision tags: release/12.2.0
# 440cec3f 12-Aug-2020 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: Rubicon Communications, LLC (netgate.com)


# e383ec74 06-Aug-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r363739 through r363986.


# 09676137 05-Aug-2020 Li-Wen Hsu <lwhsu@FreeBSD.org>

Appease gcc's -Wparentheses (and -Werror)

Sponsored by: The FreeBSD Foundation


# e2c0e292 16-Jul-2020 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: Rubicon Communications, LLC (netgate.com)


# 39523b48 16-Jul-2020 Mark Johnston <markj@FreeBSD.org>

safexcel(4): Silence an integer truncation warning.

In practice overflow is not possible, but we might as well use the right
type for DMA ring sizes.

CID: 1430468
MFC after: 1 week


12