Skip to content

Commit

Permalink
[vslib] Clean Sai interface include (sonic-net#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored Aug 4, 2021
1 parent 2000aeb commit e2c9590
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 4 additions & 2 deletions vslib/inc/sai_vs.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ extern "C" {
#include "saiextensions.h"
}

#include "Sai.h"
#include "SaiInterface.h"

#include "swss/logger.h"

#include <memory>

Expand Down Expand Up @@ -57,7 +59,7 @@ PRIVATE extern const sai_virtual_router_api_t vs_virtual_router_api;
PRIVATE extern const sai_vlan_api_t vs_vlan_api;
PRIVATE extern const sai_wred_api_t vs_wred_api;

PRIVATE extern std::shared_ptr<saivs::Sai> vs_sai;
PRIVATE extern std::shared_ptr<sairedis::SaiInterface> vs_sai;

// QUAD OID

Expand Down
2 changes: 0 additions & 2 deletions vslib/src/sai_vs_fdb.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "sai_vs.h"

using namespace saivs;

static sai_status_t vs_flush_fdb_entries(
_In_ sai_object_id_t switch_id,
_In_ uint32_t attr_count,
Expand Down
5 changes: 2 additions & 3 deletions vslib/src/sai_vs_interfacequery.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include "sai_vs.h"
#include "Sai.h"

using namespace saivs;

std::shared_ptr<Sai> vs_sai = std::make_shared<Sai>();
std::shared_ptr<sairedis::SaiInterface> vs_sai = std::make_shared<saivs::Sai>();

sai_status_t sai_api_initialize(
_In_ uint64_t flags,
Expand Down

0 comments on commit e2c9590

Please sign in to comment.