Skip to content

Commit

Permalink
Making variables global to be accessed in other functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed May 10, 2024
1 parent 185a1f6 commit 7bf3f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ PortsOrch::PortsOrch(DBConnector *db, DBConnector *stateDb, vector<table_name_wi

sai_attr_capability_t capability;

bool saiHwTxSignalSupported = false;
bool saiTxReadyNotifySupported = false;

if (sai_query_attribute_capability(gSwitchId, SAI_OBJECT_TYPE_PORT,
SAI_PORT_ATTR_HOST_TX_SIGNAL_ENABLE,
Expand Down
2 changes: 2 additions & 0 deletions orchagent/portsorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ class PortsOrch : public Orch, public Subject

bool fec_override_sup = false;
bool oper_fec_sup = false;
bool saiHwTxSignalSupported = false;
bool saiTxReadyNotifySupported = false;

swss::SelectableTimer *m_port_state_poller = nullptr;

Expand Down

0 comments on commit 7bf3f6c

Please sign in to comment.