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

PSA eBPF: Commands: Clone Command #20

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

jkoeppeler
Copy link
Contributor

Implements cloning functionality.
Usage in P4RROT:

Clone([UdpDstPort.handle], table_name="clone_table", action_name="assign_clone")

Control Plane needs to fill the table and the clone-sessions. For example:

nikss-ctl clone-session create pipe 1 id 123
nikss-ctl clone-session add-member pipe 1 id 123 egress-port 2 instance 1 nikss-ctl clone-session add-member pipe 1 id 123 egress-port 3 instance 2 nikss-ctl clone-session get pipe 1 id 123
nikss-ctl table add pipe 1 ebpfIngress_clone_table action name ebpfIngress_assign_clone key 5555 data 123

Jonas Köppeler added 2 commits July 23, 2023 17:47
Implements cloning functionality.
Usage in P4RROT:

Clone([UdpDstPort.handle], table_name="clone_table", action_name="assign_clone")

Control Plane needs to fill the table and the clone-sessions.
For example:

nikss-ctl clone-session create pipe 1 id 123
nikss-ctl clone-session add-member pipe 1 id 123 egress-port 2 instance 1
nikss-ctl clone-session add-member pipe 1 id 123 egress-port 3 instance 2
nikss-ctl clone-session get pipe 1 id 123
nikss-ctl table add pipe 1 ebpfIngress_clone_table action name ebpfIngress_assign_clone key 5555 data 123
@gycsaba96 gycsaba96 merged commit ffafb2f into Team-P4RROT:main Aug 21, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants