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

cni: move the PBL to punt when VCL is on #641

Closed
wants to merge 1 commit into from

Conversation

sknat
Copy link
Collaborator

@sknat sknat commented Oct 11, 2023

This patch moves the PBL to the pod's VRF as it was previously in the main VRF. This will enable pod to self communication respecting the port mapping defined in the annotation.

When VCL is enabled on the pod, we add the PBL in the punt table so that traffic is first looked up in VPP's session table, then hits the port lookup in the PBL. This allows using all three (memif,VCL,tuntap) for a single pod.

This patch moves the PBL to the pod's VRF as it was previously
in the main VRF. This will enable pod to self communication
respecting the port mapping defined in the annotation.

When VCL is enabled on the pod, we add the PBL in the punt table
so that traffic is first looked up in VPP's session table, then
hits the port lookup in the PBL. This allows using all three
(memif,VCL,tuntap) for a single pod.

Signed-off-by: Nathan Skrzypczak <[email protected]>
@sknat sknat requested a review from hedibouattour October 11, 2023 15:48
@hedibouattour
Copy link
Collaborator

This is not creating pbl at all in case of vcl. Current code is mutually exclusive between pb land vcl, so I think we need a deeper refactoring.

@sknat sknat marked this pull request as draft October 17, 2023 12:14
@sknat
Copy link
Collaborator Author

sknat commented Oct 17, 2023

Thanks for the feedback @hedibouattour didn't pay attention to this one.
If you have cycles, feel free to push on top of this PR

@sknat
Copy link
Collaborator Author

sknat commented Oct 19, 2023

Closing in favor of #646

@sknat sknat closed this Oct 19, 2023
@sknat sknat deleted the dev/nsk-pbl-memif-vcl branch November 13, 2023 09:56
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