-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dataplane telemetry support in SONiC #328
Changes from 59 commits
aa5bf64
c48a7a2
29ab3de
e0366e0
30c8f89
67d998b
17ef711
1b39bc2
0204303
23a5d39
8138854
be10c3f
77a33ca
ce80282
b31892b
1c1d862
488287d
05048cf
450ed3b
eb81f24
5c3c19d
c97ca98
f32489b
2da73f8
2467bc6
679f7ee
216f745
d6b0ca3
909a50e
adfdb86
b995cd1
043ac32
8d6d487
097422d
b0c7c23
fb55ef7
bff6e2c
c591e38
226dc4d
bac744c
b68ee14
4b6df45
0ad8951
986dad6
39975ba
158d5c8
d1be87a
e2c7d9b
7418cb0
6849eb3
1cf8724
8be553e
8f44c34
4b98411
73c9611
3623488
96adf56
5de2c9a
c19b02a
befaed1
82760ff
14902a5
5d914e5
3c70742
fc15c56
14cbaef
7b11204
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "sai_redis.h" | ||
|
||
REDIS_GENERIC_QUAD(DTEL,dtel); | ||
REDIS_GENERIC_QUAD(DTEL_QUEUE_REPORT,dtel_queue_report); | ||
REDIS_GENERIC_QUAD(DTEL_INT_SESSION,dtel_int_session); | ||
REDIS_GENERIC_QUAD(DTEL_REPORT_SESSION,dtel_report_session); | ||
REDIS_GENERIC_QUAD(DTEL_EVENT,dtel_event); | ||
|
||
const sai_dtel_api_t redis_dtel_api = { | ||
|
||
REDIS_GENERIC_QUAD_API(dtel) | ||
REDIS_GENERIC_QUAD_API(dtel_queue_report) | ||
REDIS_GENERIC_QUAD_API(dtel_int_session) | ||
REDIS_GENERIC_QUAD_API(dtel_report_session) | ||
REDIS_GENERIC_QUAD_API(dtel_event) | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,12 @@ endif | |
if SAIVS | ||
SAILIB=-L$(top_srcdir)/vslib/src/.libs -lsaivs | ||
else | ||
if sonic_asic_platform_barefoot | ||
SAILIB=-L/opt/bfn/install/lib -lswitchsai -lswitchapi -lbf_switchd_lib -ltofinopdfixed_thrift -ldriver -lbfutils -lbfsys -lbfutils -L/opt/bfn/install/lib/tofinopd/switch -lpd -lpdcli -lpdthrift | ||
else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove library other than the sai package. |
||
SAILIB=-lsai | ||
endif | ||
endif | ||
|
||
saidiscovery_SOURCES = saidiscovery.cpp | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,16 @@ else | |
DBGFLAGS = -g | ||
endif | ||
|
||
|
||
if SAIVS | ||
SAILIB=-L$(top_srcdir)/vslib/src/.libs -lsaivs | ||
else | ||
if sonic_asic_platform_barefoot | ||
SAILIB=-L/opt/bfn/install/lib -lswitchsai -lswitchapi -lbf_switchd_lib -ltofinopdfixed_thrift -ldriver -lbfutils -lbfsys -lbfutils -L/opt/bfn/install/lib/tofinopd/switch -lpd -lpdcli -lpdthrift | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove library other than the sai package. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
else | ||
SAILIB=-lsai | ||
endif | ||
endif | ||
|
||
saisdkdump_SOURCES = saisdkdump.cpp | ||
saisdkdump_CPPFLAGS = $(DBGFLAGS) $(AM_CPPFLAGS) $(CFLAGS_COMMON) $(SAIFLAGS) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,13 @@ endif | |
if SAIVS | ||
SAILIB=-L$(top_srcdir)/vslib/src/.libs -lsaivs | ||
else | ||
if sonic_asic_platform_barefoot | ||
AM_CPPFLAGS += -I/opt/bfn/install/include | ||
SAILIB=-L/opt/bfn/install/lib -lswitchsai -lswitchapi -lbf_switchd_lib -ltofinopdfixed_thrift -ldriver -lbfutils -lbfsys -lbfutils -L/opt/bfn/install/lib/tofinopd/switch -lpd -lpdcli -lpdthrift | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. only link to libsai There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
else | ||
SAILIB=-lsai | ||
endif | ||
endif | ||
|
||
syncd_SOURCES = \ | ||
main.cpp \ | ||
|
@@ -29,6 +34,7 @@ syncd_LDADD = -lhiredis -lswsscommon $(SAILIB) -lpthread -L$(top_srcdir)/meta/.l | |
if SAITHRIFT | ||
syncd_CPPFLAGS += -DSAITHRIFT=yes | ||
syncd_LDADD += -lrpcserver -lthrift | ||
#syncd_LDADD += -lthrift | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this commented line. |
||
endif | ||
|
||
syncd_request_shutdown_SOURCES = syncd_request_shutdown.cpp | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TAB -> SPACES