]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
safexcel: Simplify request allocation
authorMark Johnston <markj@FreeBSD.org>
Mon, 18 Jan 2021 22:07:56 +0000 (17:07 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 25 Jan 2021 14:20:15 +0000 (09:20 -0500)
commit5071cbacfb343f024bc1c9969aa43d20daa8241a
tree785b7111c995848215817fa450559b1f81792f41
parent804d63c0ee8f56dfac29e1fe5879740a3549d0cb
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.

Sponsored by: Rubicon Communications, LLC (Netgate)

(cherry picked from commit 1a6ffed5d73a22858182e68e629662afda1b9f6d)
sys/dev/safexcel/safexcel.c
sys/dev/safexcel/safexcel_var.h