Page MenuHomeFreeBSD

nvme: Directly lookup op code
ClosedPublic

Authored by imp on Aug 7 2023, 10:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 2, 6:20 PM
Unknown Object (File)
Mon, Mar 2, 3:26 PM
Unknown Object (File)
Wed, Feb 18, 8:43 AM
Unknown Object (File)
Tue, Feb 17, 7:43 AM
Unknown Object (File)
Feb 8 2026, 2:44 PM
Unknown Object (File)
Feb 8 2026, 9:07 AM
Unknown Object (File)
Feb 6 2026, 12:26 PM
Unknown Object (File)
Jan 30 2026, 7:25 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 53008
Build 49899: arc lint + arc unit

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.