-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p4tc: Introduce subscription filters for table entries
Introduce subscription filters, as of now only for table entries, but we intend to include externs in the future. To subscribe to a specific event with a filter, the user must specify it when running tc monitor. For example, if the user wants to filter the table entry create commands from a pipeline (ptables), a table (tname2) with entry key srcport == 80, the user will issue the following command: tc monitor command/create ptables/table/cb/tname2 \ filter key.ptables.cb.tname2.srcPort = 80 If one creates a table entry like the following: tc p4 create ptables/table/cb/tname2 srcPort 80 dstPort 443 And they would see the following in tc monitor: created pipeline: ptables(id 22) table: cb/tname2(id 2)entry priority 64000[permissions -RUD-PS-R--X--] entry key srcPort id:1 size:16b type:bit16 exact fieldval 80 dstPort id:2 size:16b type:bit16 exact fieldval 443 created by entity: tc (id 2) create by pid: 448 created by process: tc dynamic false tmpl created false Co-developed-by: Victor Nogueira <[email protected]> Signed-off-by: Victor Nogueira <[email protected]> Co-developed-by: Pedro Tammela <[email protected]> Signed-off-by: Pedro Tammela <[email protected]> Signed-off-by: Jamal Hadi Salim <[email protected]>
- Loading branch information
1 parent
5b58af9
commit 2b5b327
Showing
9 changed files
with
477 additions
and
43 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
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.