Skip to content

Commit

Permalink
swss: Dataplane telemetry support in SONiC (sonic-net#521)
Browse files Browse the repository at this point in the history
* 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 <gulv@microsoft.com>

* 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
  • Loading branch information
shruthi9 authored and lguohan committed Jul 15, 2018
1 parent 620fe95 commit dcf6c90
Show file tree
Hide file tree
Showing 19 changed files with 2,746 additions and 607 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ esac],[gtest=false])
AM_CONDITIONAL(GTEST, test x$gtest = xtrue)

CFLAGS_COMMON="-std=c++11 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3 -I/usr/include/swss"

AM_CONDITIONAL(sonic_asic_platform_barefoot, test x$CONFIGURED_PLATFORM = xbarefoot)
AM_COND_IF([sonic_asic_platform_barefoot],
[CFLAGS_COMMON+=" -I/opt/bfn/install/include/switchsai"])

CFLAGS_COMMON+=" -Werror"
CFLAGS_COMMON+=" -Wno-reorder"
CFLAGS_COMMON+=" -Wcast-align"
Expand Down
3 changes: 3 additions & 0 deletions orchagent/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ swssdir = $(datadir)/swss
dist_swss_DATA = \
pfc_detect_mellanox.lua \
pfc_detect_broadcom.lua \
pfc_detect_barefoot.lua \
pfc_restore.lua

bin_PROGRAMS = orchagent routeresync
Expand Down Expand Up @@ -41,6 +42,7 @@ orchagent_SOURCES = \
request_parser.cpp \
vrforch.cpp \
countercheckorch.cpp \
dtelorch.cpp \
flexcounterorch.cpp\
acltable.h \
aclorch.h \
Expand All @@ -67,6 +69,7 @@ orchagent_SOURCES = \
crmorch.h
request_parser.h \
vrforch.h \
dtelorch.h \
countercheckorch.h \
flexcounterorch.h

Expand Down
Loading

0 comments on commit dcf6c90

Please sign in to comment.