Skip to content

Commit

Permalink
[everflow]: Use MLNX_PLATFORM_SUBSTRING define to get platform. (soni…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrivantsiv authored and lguohan committed Nov 1, 2017
1 parent d460103 commit f90a4e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions orchagent/mirrororch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <utility>
#include <exception>

#include "orch.h"
#include "logger.h"
#include "swssnet.h"
#include "converter.h"
Expand All @@ -25,8 +26,6 @@
#define MIRROR_SESSION_DSCP_MIN 0
#define MIRROR_SESSION_DSCP_MAX 63

#define MLNX_PLATFORM "mlnx"

extern sai_mirror_api_t *sai_mirror_api;
extern sai_object_id_t gSwitchId;

Expand All @@ -45,7 +44,7 @@ MirrorEntry::MirrorEntry(const string& platform) :
nexthopInfo.resolved = false;
neighborInfo.resolved = false;

if (platform == MLNX_PLATFORM)
if (platform == MLNX_PLATFORM_SUBSTRING)
{
greType = 0x6558;
queue = 1;
Expand Down

0 comments on commit f90a4e1

Please sign in to comment.