Skip to content

Commit

Permalink
VS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rpmarvell committed Dec 4, 2024
1 parent 0317c00 commit f39f6aa
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 272 deletions.
23 changes: 0 additions & 23 deletions tests/MRVLTL7.pl

This file was deleted.

34 changes: 0 additions & 34 deletions tests/MRVLTL7/lanemap.ini

This file was deleted.

8 changes: 0 additions & 8 deletions tests/MRVLTL7/query_stats_capability.rec

This file was deleted.

3 changes: 0 additions & 3 deletions tests/MRVLTL7/vsprofile.ini

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ testdash_gtest_LDADD = -lgtest -lhiredis -lswsscommon -lpthread \
$(top_srcdir)/lib/libsairedis.la $(top_srcdir)/syncd/libSyncd.a \
-L$(top_srcdir)/meta/.libs -lsaimetadata -lsaimeta -lzmq $(CODE_COVERAGE_LIBS)

TESTS = checksaiapi.sh aspellcheck.pl conflictnames.pl swsslogentercheck.sh checkwhitespace.sh tests BCM56850.pl MLNX2700.pl BCM56971B0.pl NVDAMBF2H536C.pl MRVLTL7.pl testdash_gtest
TESTS = checksaiapi.sh aspellcheck.pl conflictnames.pl swsslogentercheck.sh checkwhitespace.sh tests BCM56850.pl MLNX2700.pl BCM56971B0.pl NVDAMBF2H536C.pl testdash_gtest
3 changes: 1 addition & 2 deletions unittest/vslib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ tests_SOURCES = main.cpp \
TestMACsecManager.cpp \
TestSwitchStateBase.cpp \
TestSai.cpp \
TestVirtualSwitchSaiInterface.cpp \
TestSwitchMrvlTL7.cpp
TestVirtualSwitchSaiInterface.cpp

tests_CXXFLAGS = $(DBGFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS_COMMON) -fno-access-control
tests_LDADD = $(LDADD_GTEST) $(top_srcdir)/vslib/libSaiVS.a -lhiredis -lswsscommon -lnl-genl-3 -lnl-nf-3 -lnl-route-3 -lnl-3 \
Expand Down
99 changes: 0 additions & 99 deletions unittest/vslib/TestSwitchMrvlTL7.cpp

This file was deleted.

1 change: 0 additions & 1 deletion vslib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ libSaiVS_a_SOURCES = \
Switch.cpp \
SwitchMLNX2700.cpp \
SwitchNvdaMBF2H536C.cpp \
SwitchMrvlTL7.cpp \
SwitchStateBase.cpp \
SwitchStateBaseFdb.cpp \
SwitchStateBaseHostif.cpp \
Expand Down
7 changes: 1 addition & 6 deletions vslib/SwitchConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ bool SwitchConfig::parseSwitchType(
*/
switchType = SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C;
}
else if (st == SAI_VALUE_VS_SWITCH_TYPE_MRVLTL7)
{
switchType = SAI_VS_SWITCH_TYPE_MRVLTL7;
}
else
{
std::vector<std::string> vals {
Expand All @@ -102,8 +98,7 @@ bool SwitchConfig::parseSwitchType(
SAI_VALUE_VS_SWITCH_TYPE_BCM56971B0,
SAI_VALUE_VS_SWITCH_TYPE_MLNX2700,
SAI_VALUE_VS_SWITCH_TYPE_NVDA_MBF2H536C,
SAI_VALUE_VS_SWITCH_TYPE_DPU_SIMU_2P,
SAI_VALUE_VS_SWITCH_TYPE_MRVLTL7
SAI_VALUE_VS_SWITCH_TYPE_DPU_SIMU_2P
};

SWSS_LOG_ERROR("unknown switch type: '%s', expected (%s)",
Expand Down
4 changes: 1 addition & 3 deletions vslib/SwitchConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ namespace saivs

SAI_VS_SWITCH_TYPE_MLNX2700,

SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C,

SAI_VS_SWITCH_TYPE_MRVLTL7,
SAI_VS_SWITCH_TYPE_NVDA_MBF2H536C

} sai_vs_switch_type_t;

Expand Down
53 changes: 0 additions & 53 deletions vslib/SwitchMrvlTL7.cpp

This file was deleted.

32 changes: 0 additions & 32 deletions vslib/SwitchMrvlTL7.h

This file was deleted.

6 changes: 0 additions & 6 deletions vslib/VirtualSwitchSaiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "SwitchBCM56971B0.h"
#include "SwitchMLNX2700.h"
#include "SwitchNvdaMBF2H536C.h"
#include "SwitchMrvlTL7.h"

#include <inttypes.h>

Expand Down Expand Up @@ -602,11 +601,6 @@ std::shared_ptr<SwitchStateBase> VirtualSwitchSaiInterface::init_switch(
m_switchStateMap[switch_id] = std::make_shared<SwitchNvdaMBF2H536C>(switch_id, m_realObjectIdManager, config, warmBootState);
break;

case SAI_VS_SWITCH_TYPE_MRVLTL7:

m_switchStateMap[switch_id] = std::make_shared<SwitchMrvlTL7>(switch_id, m_realObjectIdManager, config, warmBootState);
break;

default:

SWSS_LOG_WARN("unknown switch type: %d", config->m_switchType);
Expand Down
1 change: 0 additions & 1 deletion vslib/saivs.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ extern "C" {
#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_DPU_SIMU_2P "SAI_VS_SWITCH_TYPE_DPU_SIMU_2P"
#define SAI_VALUE_VS_SWITCH_TYPE_MRVLTL7 "SAI_VS_SWITCH_TYPE_MRVLTL7"

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

0 comments on commit f39f6aa

Please sign in to comment.