forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pfc]: Add egress drop by creating egress ACL table and rule (sonic-n…
…et#397) * Egress drop by creating egress acl table and rule * Separate acl stage type from aclorch and reference in portsorch Signed-off-by: Sihui Han <[email protected]>
- Loading branch information
1 parent
57a98ac
commit 6f0eee3
Showing
9 changed files
with
157 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef SWSS_ACLTABLE_H | ||
#define SWSS_ACLTABLE_H | ||
|
||
extern "C" { | ||
#include "sai.h" | ||
} | ||
|
||
#include <set> | ||
#include <string> | ||
#include <vector> | ||
#include <map> | ||
|
||
using namespace std; | ||
|
||
/* TODO: move all acltable and aclrule implementation out of aclorch */ | ||
|
||
#define TABLE_INGRESS "INGRESS" | ||
#define TABLE_EGRESS "EGRESS" | ||
#define TABLE_STAGE "STAGE" | ||
|
||
typedef enum | ||
{ | ||
ACL_STAGE_UNKNOWN, | ||
ACL_STAGE_INGRESS, | ||
ACL_STAGE_EGRESS | ||
} acl_stage_type_t; | ||
|
||
typedef map<string, acl_stage_type_t> acl_stage_type_lookup_t; | ||
|
||
#endif /* SWSS_ACLTABLE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.