-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bpf, ipcache: Add skip_tunnel field to remote_endpoint_info #29796
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
bpf, ipcache: Add skip_tunnel field to remote_endpoint_info #29796
Conversation
458fc68
to
f5d9367
Compare
f5d9367
to
458679b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! No issue for now, but I might be concerned about cilium upgrade, as the remote_endpoint_info->flag_skip_tunnel will be 0 after bpf map migration.
Consume 8 bits of padding from the ipcache remote_endpoint_info struct and reserve them for optional flags. This commit adds a single new flag, `flag_skip_tunnel`, to signal that the attached endpoint shall not be forwarded through a VXLAN/Geneve tunnel, regardless of the Cilium configuration. Co-authored-by: Marco Iorio <marco.iorio@isovalent.com> Signed-off-by: Ryan Drew <ryan.drew@isovalent.com>
458679b
to
088c4c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test |
The why is missing from both the commit and PR descriptions. What was the use case here? |
Always set tunnel_endpoint in ipcache, even for directly reachable endpoints. This ensures DSR info is available for DSR with geneve dispatch. Add plumbing to set and propagate endpointFlags from cilium#29796. Use endpointFlags to set the skiptunnel flag for directly reachable endpoints such that, even if overlay is enabled, we do not do an unneeded encap. Fixes: cilium#36901 Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it>
This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it>
This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it>
This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it>
This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it>
This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it>
[ upstream commit 9715b5c ] This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it> Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
[ upstream commit 9715b5c ] This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it> Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
[ upstream commit 9715b5c ] This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it> Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
[ upstream commit 9715b5c ] This commit makes endpoint flags available for plumbing in the new ipcache API, allowing to set them from higher in the stack Signed-off-by: Tommaso Pozzetti <tommypozzetti@hotmail.it> Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
This reverts commit b961996. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
This reverts commit b961996. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
This reverts commit 9715b5c. Signed-off-by: Martynas Pumputis <martynas@isovalent.com>
This reverts commit 9715b5c. Signed-off-by: Martynas Pumputis <martynas@isovalent.com>
This reverts commit 9715b5c. Signed-off-by: Martynas Pumputis <martynas@isovalent.com>
This reverts commit 9715b5c. Signed-off-by: Martynas Pumputis <martynas@isovalent.com>
This reverts commit 9715b5c. Signed-off-by: Martynas Pumputis <martynas@isovalent.com>
Consume 8 bits of padding from the ipcache remote_endpoint_info struct and reserve them for optional flags. This commit adds a single new flag,
flag_skip_tunnel
, to signal that the attached endpoint shall not be forwarded through a VXLAN/Geneve tunnel, regardless of the Cilium configuration.description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.