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)
Fri, Dec 13, 5:38 PM
Unknown Object (File)
Nov 20 2024, 3:37 AM
Unknown Object (File)
Nov 20 2024, 1:08 AM
Unknown Object (File)
Oct 2 2024, 6:23 PM
Unknown Object (File)
Sep 22 2024, 10:08 AM
Unknown Object (File)
Sep 7 2024, 4:23 AM
Unknown Object (File)
Sep 4 2024, 11:08 PM
Unknown Object (File)
Sep 3 2024, 8:17 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 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.