Skip to content
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

Broadcast Unknown-multicast and Unknown-unicast Storm-control #1306

Merged
merged 86 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
b3b13c9
Handle BUM Storm-control CONFIG_DB update.
mohan-selvaraj Jun 1, 2020
b3913d4
Pytest UT Automation for BUM storm-control
mohan-selvaraj Jun 2, 2020
3650699
BUM storm-control support
mohan-selvaraj Jul 2, 2020
3441ff4
Address review comments in policerorch
mohan-selvaraj Jul 10, 2020
3228cf8
Merge branch 'master' of https://github.com/Azure/sonic-swss into sto…
mohan-selvaraj Nov 2, 2021
d45b17c
review comments
mohan-selvaraj Nov 3, 2021
861b08f
Merge branch 'master' into storm_control
mohan-selvaraj Nov 3, 2021
b8a9ef7
Remove check for unnecessary attributes for storm policer update. Add…
mohan-selvaraj Nov 4, 2021
e44535e
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Nov 4, 2021
d4e620c
mohan-selvaraj Nov 4, 2021
b6fc77b
mohan-selvaraj Nov 4, 2021
97d6da5
mohan-selvaraj Nov 4, 2021
6399b15
mohan-selvaraj Nov 7, 2021
7a395d7
mohan-selvaraj Nov 7, 2021
59f25bd
mohan-selvaraj Nov 8, 2021
a9c58e0
mohan-selvaraj Nov 8, 2021
ef94163
mohan-selvaraj Nov 8, 2021
8174e07
mohan-selvaraj Nov 8, 2021
67bc814
Merge branch 'master' into storm_control
mohan-selvaraj Nov 9, 2021
69b7bfd
remove storm configurations after warmboot test
mohan-selvaraj Nov 9, 2021
c97ab6b
Merge branch 'master' into storm_control
mohan-selvaraj Nov 11, 2021
ea5265c
Merge branch 'master' into storm_control
mohan-selvaraj Nov 12, 2021
3b4be2d
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Nov 15, 2021
9375aad
Merge branch 'master' into storm_control
mohan-selvaraj Nov 16, 2021
a8dd693
mohan-selvaraj Nov 23, 2021
2aefc43
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Nov 23, 2021
c54d3fd
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Nov 24, 2021
4790831
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Nov 24, 2021
484ba33
update pytest to use the new config command syntax
mohan-selvaraj Nov 24, 2021
60b47ea
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Nov 25, 2021
62f7847
capability check for storm-control
mohan-selvaraj Nov 30, 2021
04eea58
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Nov 30, 2021
f69ede7
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Nov 30, 2021
5e19abf
Merge branch 'master' into storm_control
mohan-selvaraj Dec 1, 2021
8d22411
mohan-selvaraj Dec 1, 2021
780dda5
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Dec 1, 2021
72cf468
mohan-selvaraj Dec 1, 2021
9ed6e22
mohan-selvaraj Dec 1, 2021
3ca1dc8
mohan-selvaraj Dec 1, 2021
1eaf844
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Dec 1, 2021
a7cf281
Merge branch 'master' into storm_control
mohan-selvaraj Apr 11, 2022
e930602
Merge branch 'master' into storm_control
mohan-selvaraj Apr 11, 2022
3f8835b
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Apr 11, 2022
cc4e4e2
Handle policer value update to unbind and bind the storm policer.
mohan-selvaraj Apr 11, 2022
91ce082
mohan-selvaraj Apr 11, 2022
97dce65
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Apr 14, 2022
5228034
Merge branch 'master' into storm_control
mohan-selvaraj Apr 14, 2022
c7d00d1
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Apr 14, 2022
438f398
Reduced code changes in policerorch for storm-control
mohan-selvaraj Apr 25, 2022
d0d6abe
Merge branch 'master' into storm_control
mohan-selvaraj Apr 25, 2022
6b6bb4f
Merge branch 'master' into storm_control
mohan-selvaraj Apr 25, 2022
f1396e1
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj Apr 25, 2022
f4497f9
Removed stateDB reference in orchdaemon
mohan-selvaraj Apr 25, 2022
6b2dd3f
mohan-selvaraj Apr 25, 2022
0859958
update test code
mohan-selvaraj Apr 26, 2022
f125927
Merge branch 'Azure:master' into storm_control
mohan-selvaraj Apr 29, 2022
3e6f50f
Merge branch 'Azure:master' into storm_control
mohan-selvaraj May 5, 2022
8c11494
Merge branch 'master' into storm_control
mohan-selvaraj May 5, 2022
53626ac
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj May 5, 2022
a46baec
move storm-control config handling code to API.
mohan-selvaraj May 5, 2022
949bd30
mohan-selvaraj May 5, 2022
0ec20b5
mohan-selvaraj May 6, 2022
0b835e3
update negative test code to use direct config-db update instead of C…
mohan-selvaraj May 6, 2022
453cb8c
mohan-selvaraj May 6, 2022
ac3a49e
mohan-selvaraj May 9, 2022
638f1d2
Merge branch 'Azure:master' into storm_control
mohan-selvaraj May 10, 2022
8ac5ed6
Merge branch 'master' into storm_control
mohan-selvaraj May 10, 2022
5e65e05
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj May 10, 2022
f5feaa3
mohan-selvaraj May 10, 2022
4ec19b7
mohan-selvaraj May 10, 2022
a88792b
Merge branch 'Azure:master' into storm_control
mohan-selvaraj May 11, 2022
9c01541
Merge branch 'Azure:master' into storm_control
mohan-selvaraj May 13, 2022
fd2d801
Merge branch 'master' into storm_control
mohan-selvaraj May 13, 2022
634893b
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj May 13, 2022
9a5a0a1
fix copp orch UT code to use the new signature of policerorch constru…
mohan-selvaraj May 13, 2022
3495392
mohan-selvaraj May 13, 2022
15b47c5
Merge branch 'Azure:master' into storm_control
mohan-selvaraj May 17, 2022
b877e50
mohan-selvaraj May 17, 2022
28f517b
Merge branch 'master' into storm_control
mohan-selvaraj May 17, 2022
1bd6af4
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj May 17, 2022
54e8d28
Merge branch 'Azure:master' into storm_control
mohan-selvaraj May 19, 2022
09325a7
mohan-selvaraj May 19, 2022
8d8579a
Merge branch 'master' into storm_control
mohan-selvaraj May 19, 2022
28e5d41
Merge branch 'storm_control' of https://github.com/mohan-selvaraj/son…
mohan-selvaraj May 19, 2022
18b7a16
disable swss warm-restart after test completion
mohan-selvaraj May 20, 2022
397657b
mohan-selvaraj May 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions orchagent/orchdaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ BufferOrch *gBufferOrch;
SwitchOrch *gSwitchOrch;
Directory<Orch*> gDirectory;
NatOrch *gNatOrch;
PolicerOrch *gPolicerOrch;
MlagOrch *gMlagOrch;
IsoGrpOrch *gIsoGrpOrch;
MACsecOrch *gMacsecOrch;
Expand Down Expand Up @@ -228,11 +229,17 @@ bool OrchDaemon::init()
};
gBufferOrch = new BufferOrch(m_applDb, m_configDb, m_stateDb, buffer_tables);

PolicerOrch *policer_orch = new PolicerOrch(m_configDb, "POLICER");
vector<TableConnector> policer_tables = {
TableConnector(m_configDb, CFG_POLICER_TABLE_NAME),
TableConnector(m_configDb, CFG_PORT_STORM_CONTROL_TABLE_NAME)
};

TableConnector stateDbStorm(m_stateDb, "BUM_STORM_CAPABILITY");
gPolicerOrch = new PolicerOrch(policer_tables, stateDbStorm, gPortsOrch);

TableConnector stateDbMirrorSession(m_stateDb, STATE_MIRROR_SESSION_TABLE_NAME);
TableConnector confDbMirrorSession(m_configDb, CFG_MIRROR_SESSION_TABLE_NAME);
gMirrorOrch = new MirrorOrch(stateDbMirrorSession, confDbMirrorSession, gPortsOrch, gRouteOrch, gNeighOrch, gFdbOrch, policer_orch);
gMirrorOrch = new MirrorOrch(stateDbMirrorSession, confDbMirrorSession, gPortsOrch, gRouteOrch, gNeighOrch, gFdbOrch, gPolicerOrch);

TableConnector confDbAclTable(m_configDb, CFG_ACL_TABLE_TABLE_NAME);
TableConnector confDbAclTableType(m_configDb, CFG_ACL_TABLE_TYPE_TABLE_NAME);
Expand Down Expand Up @@ -325,7 +332,7 @@ bool OrchDaemon::init()
* when iterating ConsumerMap. This is ensured implicitly by the order of keys in ordered map.
* For cases when Orch has to process tables in specific order, like PortsOrch during warm start, it has to override Orch::doTask()
*/
m_orchList = { gSwitchOrch, gCrmOrch, gPortsOrch, gBufferOrch, mux_orch, mux_cb_orch, gIntfsOrch, gNeighOrch, gNhgMapOrch, gNhgOrch, gCbfNhgOrch, gRouteOrch, gCoppOrch, qos_orch, wm_orch, policer_orch, tunnel_decap_orch, sflow_orch, debug_counter_orch, gMacsecOrch, gBfdOrch, gSrv6Orch};
m_orchList = { gSwitchOrch, gCrmOrch, gPortsOrch, gBufferOrch, mux_orch, mux_cb_orch, gIntfsOrch, gNeighOrch, gNhgMapOrch, gNhgOrch, gCbfNhgOrch, gRouteOrch, gCoppOrch, qos_orch, wm_orch, gPolicerOrch, tunnel_decap_orch, sflow_orch, debug_counter_orch, gMacsecOrch, gBfdOrch, gSrv6Orch};

bool initialize_dtel = false;
if (platform == BFN_PLATFORM_SUBSTRING || platform == VS_PLATFORM_SUBSTRING)
Expand Down
Loading