HomeFreeBSD

safexcel: Simplify request allocation

Description

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)

Details

Provenance
markjAuthored on Jan 18 2021, 10:07 PM
Parents
rGb7e27af36b7d: safexcel: Handle command/result descriptor exhaustion gracefully
Branches
Unknown
Tags
Unknown