Skip to content

Commit dcf6c90

Browse files
shruthi9lguohan
authored andcommitted
swss: Dataplane telemetry support in SONiC (sonic-net#521)
* initial barefoot support october 2017 * import changes from telemetry branch * Fix merge issues w.r.t rel_6_0 branch * add validate and get port speed APIs - cleanup deletes from earlier checkin * missed changes from earlier * missed integration delete * trying to get close to master version - and not break other vendor * set the port config in the ASIC_DB * update hostif oper status besides the DB update * Fix compilation issues * merge closer to master - including spaces and comments * fix typos enable mirror * cosmetic fix * Fix errors due to saiacl.h changes * Fix more errors due to sai header file changes * fix the order of nexthop/neighbor delete * Fix compilation issues and few issues seen in testing * Changes needed to add new Dtel api support to sairedis * Report session DTel table related fixes * Add more error handling code * Fix logic to read table name and keys from m_toSync map * Update value for dtel actions * Handle boolean attributes to accept true/false as well as presence/absence * Fix merge errors * Incorporate configdb related changes for dtel * fix code merge issue * Incorporate configdb related changes for dtel * add pfc_detect lua script * Changes to incorporate new DTel SAI changes * SONiC changes due to DTel experimental SAI changes * cleanup configure.ac to allow barefoot platform includes * fix typo * revert commented tunneldecap * test selective tunneldecap * revert too ambitious an attempt and just push_back into vector! * change fec mode to string (from integer) * cleanup based on review * closer to 201712 - cosmetic cleanup * address review comments * fix format * Support for platforms based on Barefoot Networks' device (sonic-net#452) * Fix issue with "config save" followed by reboot * Temp remove crmorch Currently orchagent crashes if crm is running. Needs to be fixed * Initial code changes to address community design review comments * Temp remove crmorch Currently orchagent crashes if crm is running. Needs to be fixed P.S This is actual commit that removes crm. Previous commit was to correct a typo, and has wrong commit message * More changes to address review comments * Fix build errors * Fix for orchagent crash * Fix queue report deletion error * Bug fixes * Re-enable crm orchagent (#3) * Add support for new watchlist attribute to enable/disable tail drop reporting * Add new VS test for Dataplane Telemetry feature * Add support for AN and FEC to be specified in port_config.ini * do not set autoneg if it is already set * Address review comments * Fix compilation errors * set port adv speed for AN and add test Signed-off-by: Guohan Lu <[email protected]> * Convert all the tabs to spaces * Bring in changes for port an/fec from azure master * support autoneg and fec in port config ini file * if autoneg is specified, along with speed; speed is set seperately as port attribute * Address review comments * Remove trailing whitespaces * Fix vs test indentation * Address review comments * Fix for VS test * Fix VS test failure * Fix for VS test * More VS test fixes * Fix for test_mirror VS test that was failing due to new DTel ACL tables
1 parent 620fe95 commit dcf6c90

19 files changed

+2746
-607
lines changed

configure.ac

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ esac],[gtest=false])
3939
AM_CONDITIONAL(GTEST, test x$gtest = xtrue)
4040

4141
CFLAGS_COMMON="-std=c++11 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3 -I/usr/include/swss"
42+
43+
AM_CONDITIONAL(sonic_asic_platform_barefoot, test x$CONFIGURED_PLATFORM = xbarefoot)
44+
AM_COND_IF([sonic_asic_platform_barefoot],
45+
[CFLAGS_COMMON+=" -I/opt/bfn/install/include/switchsai"])
46+
4247
CFLAGS_COMMON+=" -Werror"
4348
CFLAGS_COMMON+=" -Wno-reorder"
4449
CFLAGS_COMMON+=" -Wcast-align"

orchagent/Makefile.am

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ swssdir = $(datadir)/swss
77
dist_swss_DATA = \
88
pfc_detect_mellanox.lua \
99
pfc_detect_broadcom.lua \
10+
pfc_detect_barefoot.lua \
1011
pfc_restore.lua
1112

1213
bin_PROGRAMS = orchagent routeresync
@@ -41,6 +42,7 @@ orchagent_SOURCES = \
4142
request_parser.cpp \
4243
vrforch.cpp \
4344
countercheckorch.cpp \
45+
dtelorch.cpp \
4446
flexcounterorch.cpp\
4547
acltable.h \
4648
aclorch.h \
@@ -67,6 +69,7 @@ orchagent_SOURCES = \
6769
crmorch.h
6870
request_parser.h \
6971
vrforch.h \
72+
dtelorch.h \
7073
countercheckorch.h \
7174
flexcounterorch.h
7275

0 commit comments

Comments
 (0)