Page MenuHomeFreeBSD

nvme: Directly lookup op code
ClosedPublic

Authored by imp on Aug 7 2023, 10:12 PM.
Tags
None
Referenced Files
F169405132: D41353.id125682.diff
Tue, Sep 1, 11:05 AM
Unknown Object (File)
Mon, Aug 31, 1:05 PM
Unknown Object (File)
Sun, Aug 30, 10:57 AM
Unknown Object (File)
Sat, Aug 29, 12:16 PM
Unknown Object (File)
Fri, Aug 28, 2:41 PM
Unknown Object (File)
Fri, Aug 28, 12:36 PM
Unknown Object (File)
Thu, Aug 27, 12:23 PM
Unknown Object (File)
Tue, Aug 25, 11:35 AM
Subscribers

Details

Summary

Rather than have a table to walk through, use a sparse array.

Suggested by: jhb
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Aug 7 2023, 10:12 PM
jhb added inline comments.
sys/dev/nvme/nvme_qpair.c
105

I do think you can change the opc type to uint8_t and then you can remove the check against DEFAULT_INDEX.

This revision is now accepted and ready to land.Aug 7 2023, 10:45 PM
This revision was automatically updated to reflect the committed changes.