mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
nvme: Move bools to fill hole
The two bools in nvme_request create a 6 byte hole today. Move them to after retires to fill the 4 byte hole there and add a spare[2] to make nvme_request 8 bytes smaller. spare[2] isn't strictly necessary, but documents how many bytes we have left in that hole, as the number of booleans will increase shortly. Suggested by: chuck Sponsored by: Netflix
This commit is contained in:
parent
3e1f69523b
commit
09c20a2932
1 changed files with 3 additions and 2 deletions
|
|
@ -119,11 +119,12 @@ struct nvme_request {
|
|||
struct nvme_command cmd;
|
||||
struct nvme_qpair *qpair;
|
||||
struct memdesc payload;
|
||||
bool payload_valid;
|
||||
bool timeout;
|
||||
nvme_cb_fn_t cb_fn;
|
||||
void *cb_arg;
|
||||
int32_t retries;
|
||||
bool payload_valid;
|
||||
bool timeout;
|
||||
bool spare[2]; /* Future use */
|
||||
STAILQ_ENTRY(nvme_request) stailq;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue