File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -980,40 +980,14 @@ bool GenericCommander::shouldSkipPrepareReset()
980980 {
981981 return false ;
982982 }
983- int rc = 0 ;
983+
984984 uint32_t is_DPU_enabled = isDPUEnabled ();
985985 // skip can only happen in DPU mode, if DPU isnt enabled , dont skip.
986986 if (!is_DPU_enabled)
987987 {
988988 return false ;
989989 }
990- // if we reach here we are in DPU mode.
991- struct reg_access_hca_mmhi_reg_ext mmhi;
992- memset (&mmhi, 0 , sizeof (mmhi));
993- rc = reg_access_mmhi (_mf, REG_ACCESS_METHOD_GET, &mmhi);
994- if (rc)
995- {
996- return false ;
997- }
998- u_int8_t host_number = mmhi.host_number ;
999-
1000- struct reg_access_hca_mpqd_reg_ext mpqd;
1001- memset (&mpqd, 0 , sizeof (mpqd));
1002- mpqd.pcie_index = host_number;
1003- rc = reg_access_mpqd (_mf, REG_ACCESS_METHOD_GET, &mpqd);
1004- if (rc)
1005- {
1006- return false ;
1007- }
1008- uint32_t is_internal = mpqd.is_internal ;
1009-
1010- // if is internal we can send MFRL , dont skip
1011- if (is_internal)
1012- {
1013- return false ;
1014- }
1015-
1016- // if we reached here we are on DPU and external host, so skip.
990+ // if we reach here we are in DPU mode so skip.
1017991 return true ;
1018992}
1019993
You can’t perform that action at this time.
0 commit comments