Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
 * Use a specific name SAI_VALUE_VS_SWITCH_TYPE_DPU_SIMU_2P for 2-port DPU

Signed-off-by: Prabhat Aravind <[email protected]>
  • Loading branch information
prabhataravind committed Jul 4, 2023
1 parent 6010970 commit c61c7c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions vslib/SwitchConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ bool SwitchConfig::parseSwitchType(
{
switchType = SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C;
}
else if (st == SAI_VALUE_VS_SWITCH_TYPE_NPU)
else if (st == SAI_VALUE_VS_SWITCH_TYPE_DPU_SIMU_2P)
{
/*
* Temporarily set switchType to SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C
* for NPU. This will need to be revisited when there are other NPU
* types.
* for 2-port DPU. This will need to be revisited when there are other
* DPU types.
*/
switchType = SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C;
}
Expand Down
2 changes: 1 addition & 1 deletion vslib/saivs.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extern "C" {
#define SAI_VALUE_VS_SWITCH_TYPE_BCM81724 "SAI_VS_SWITCH_TYPE_BCM81724"
#define SAI_VALUE_VS_SWITCH_TYPE_MLNX2700 "SAI_VS_SWITCH_TYPE_MLNX2700"
#define SAI_VALUE_VS_SWITCH_TYPE_NVDA_MBF2H536C "SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C"
#define SAI_VALUE_VS_SWITCH_TYPE_NPU "SAI_VS_SWITCH_TYPE_NPU"
#define SAI_VALUE_VS_SWITCH_TYPE_DPU_SIMU_2P "SAI_VS_SWITCH_TYPE_DPU_SIMU_2P"

/*
* Values for SAI_KEY_BOOT_TYPE (defined in saiswitch.h)
Expand Down

0 comments on commit c61c7c0

Please sign in to comment.