Skip to content

Commit 1cfe58e

Browse files
bodedogalbxela
authored andcommitted
Revert "[mtcr_ul] [reg_access] [ib] fixing rc handling"
This reverts commit 8007a5f.
1 parent 9638955 commit 1cfe58e

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

mtcr_ul/mtcr_ib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,4 @@ int mib_send_gmp_access_reg_mad(mfile * mf,
6868
int mib_supports_reg_access_cls_a(mfile* mf, maccess_reg_method_t reg_method);
6969
int mib_send_cls_a_access_reg_mad(mfile* mf, u_int8_t* data);
7070
int mib_supports_reg_access_smp(mfile* mf);
71-
int mib_use_smp(mfile* mf);
7271
#endif

mtcr_ul/mtcr_ib_ofed.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,8 +2047,3 @@ int mib_supports_reg_access_smp(mfile* mf)
20472047
return (mf->tp == MST_IB && ((ibvs_mad*)mf->ctx)->use_smp) && (mf->flags & (MDEVS_IB | MDEVS_FWCTX)) ||
20482048
(!(mf->flags & MDEVS_IB));
20492049
}
2050-
2051-
int mib_use_smp(mfile* mf)
2052-
{
2053-
return ((ibvs_mad*)mf->ctx)->use_smp;
2054-
}

mtcr_ul/mtcr_ul_com.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,15 +3250,6 @@ int supports_reg_access_smp(mfile* mf)
32503250
return 0;
32513251
}
32523252

3253-
int should_use_smp(mfile* mf)
3254-
{
3255-
#ifndef NO_INBAND
3256-
return mib_use_smp(mf);
3257-
#endif
3258-
(void)mf;
3259-
return 0;
3260-
}
3261-
32623253

32633254
int maccess_reg_ul(mfile * mf,
32643255
u_int16_t reg_id,
@@ -3365,7 +3356,7 @@ int maccess_reg_ul(mfile * mf,
33653356
if (supports_reg_access_smp(mf)) {
33663357
class_to_use = MAD_CLASS_REG_ACCESS;
33673358
rc = mreg_send_raw(mf, reg_id, reg_method, reg_data, reg_size, r_size_reg, w_size_reg, reg_status);
3368-
} else if (should_use_smp(mf)){
3359+
} else {
33693360
return ME_REG_ACCESS_NOT_SUPPORTED;
33703361
}
33713362
}

0 commit comments

Comments
 (0)