@@ -23,7 +23,7 @@ use crate::{
2323 AdminIdentifyControllerResponse ,
2424 AdminIdentifyNamespaceIdentificationDescriptorListResponse ,
2525 AdminIdentifyNvmIdentifyNamespaceResponse , AdminIoCqeGenericCommandStatus ,
26- AdminIoCqeStatus , AdminIoCqeStatusType , AdminSanitizeConfiguration , ControllerListResponse ,
26+ AdminIoCqeStatusType , AdminSanitizeConfiguration , ControllerListResponse ,
2727 LidSupportedAndEffectsDataStructure , LidSupportedAndEffectsFlags , LogPageAttributes ,
2828 NamespaceIdentifierType , SanitizeAction , SanitizeOperationStatus , SanitizeState ,
2929 SanitizeStateInformation , SanitizeStatus , SanitizeStatusLogPageResponse ,
@@ -971,16 +971,9 @@ where
971971 status : ResponseStatus :: Success ,
972972 cqedw0 : 0 ,
973973 cqedw1 : 0 ,
974- cqedw3 : AdminIoCqeStatus {
975- cid : 0 ,
976- p : true ,
977- status : AdminIoCqeStatusType :: GenericCommandStatus (
978- AdminIoCqeGenericCommandStatus :: SuccessfulCompletion ,
979- ) ,
980- crd : crate :: nvme:: CommandRetryDelay :: None ,
981- m : false ,
982- dnr : false ,
983- }
974+ cqedw3 : AdminIoCqeStatusType :: GenericCommandStatus (
975+ AdminIoCqeGenericCommandStatus :: SuccessfulCompletion ,
976+ )
984977 . into ( ) ,
985978 }
986979 . encode ( ) ?;
@@ -1003,15 +996,7 @@ where
1003996 status : ResponseStatus :: Success ,
1004997 cqedw0 : 0 ,
1005998 cqedw1 : 0 ,
1006- cqedw3 : AdminIoCqeStatus {
1007- cid : 0 ,
1008- p : true ,
1009- status,
1010- crd : crate :: nvme:: CommandRetryDelay :: None ,
1011- m : false ,
1012- dnr : true ,
1013- }
1014- . into ( ) ,
999+ cqedw3 : status. into ( ) ,
10151000 }
10161001 . encode ( ) ?;
10171002
@@ -1745,16 +1730,9 @@ impl RequestHandler for AdminNamespaceManagementRequest {
17451730 status : ResponseStatus :: Success ,
17461731 cqedw0 : nsid. 0 ,
17471732 cqedw1 : 0 ,
1748- cqedw3 : AdminIoCqeStatus {
1749- cid : 0 ,
1750- p : true ,
1751- status : AdminIoCqeStatusType :: GenericCommandStatus (
1752- AdminIoCqeGenericCommandStatus :: SuccessfulCompletion ,
1753- ) ,
1754- crd : crate :: nvme:: CommandRetryDelay :: None ,
1755- m : false ,
1756- dnr : false ,
1757- }
1733+ cqedw3 : AdminIoCqeStatusType :: GenericCommandStatus (
1734+ AdminIoCqeGenericCommandStatus :: SuccessfulCompletion ,
1735+ )
17581736 . into ( ) ,
17591737 }
17601738 . encode ( ) ?;
@@ -1782,15 +1760,7 @@ impl RequestHandler for AdminNamespaceManagementRequest {
17821760 status : ResponseStatus :: Success ,
17831761 cqedw0 : self . nsid , // TODO: Base v2.1, 5.1.21 unclear, test against hardware
17841762 cqedw1 : 0 ,
1785- cqedw3 : AdminIoCqeStatus {
1786- cid : 0 ,
1787- p : true ,
1788- status,
1789- crd : crate :: nvme:: CommandRetryDelay :: None ,
1790- m : false ,
1791- dnr : res. is_err ( ) ,
1792- }
1793- . into ( ) ,
1763+ cqedw3 : status. into ( ) ,
17941764 }
17951765 . encode ( ) ?;
17961766
@@ -1918,19 +1888,7 @@ impl RequestHandler for AdminNamespaceAttachmentRequest {
19181888 status : ResponseStatus :: Success ,
19191889 cqedw0 : self . nsid ,
19201890 cqedw1 : 0 ,
1921- cqedw3 : AdminIoCqeStatus {
1922- cid : 0 ,
1923- p : true ,
1924- status,
1925- crd : crate :: nvme:: CommandRetryDelay :: None ,
1926- m : false ,
1927- dnr : {
1928- AdminIoCqeStatusType :: GenericCommandStatus (
1929- AdminIoCqeGenericCommandStatus :: SuccessfulCompletion ,
1930- ) != status
1931- } ,
1932- }
1933- . into ( ) ,
1891+ cqedw3 : status. into ( ) ,
19341892 }
19351893 . encode ( ) ?;
19361894
0 commit comments