Giter Club home page Giter Club logo

Comments (4)

kvaps avatar kvaps commented on September 26, 2024

This patch makes it working in my setup with hostLegacyRouting=true execpt connectivity from pods to external net:

diff --git a/bpf/bpf_lxc.c b/bpf/bpf_lxc.c
index 5034120554..5b26d84b01 100644
--- a/bpf/bpf_lxc.c
+++ b/bpf/bpf_lxc.c
@@ -1250,7 +1250,7 @@ skip_vtep:
                        return ret;
        }
 #endif /* TUNNEL_MODE || ENABLE_HIGH_SCALE_IPCACHE */
-       if (is_defined(ENABLE_HOST_ROUTING)) {
+       if (!is_defined(ENABLE_HOST_ROUTING)) {
                int oif = 0;

                ret = fib_redirect_v4(ctx, ETH_HLEN, ip4, false, false, ext_err, &oif);

from cilium.

kvaps avatar kvaps commented on September 26, 2024

@borkmann maybe you could help to investigate this?

from cilium.

kvaps avatar kvaps commented on September 26, 2024

Oh, after three days of debugging I found that ovn0 device has missing bpf program:

now I added it to cilium-config:

devices: "en+ ovn0"

and everything statred working 🎉

# tc filter show dev ovn0 egress
filter protocol all pref 1 bpf chain 0
filter protocol all pref 1 bpf chain 0 handle 0x1 cil_to_netdev-ovn0 direct-action not_in_hw id 114214 tag 63638179020264a5 jited

Is there any way to say "use autodetected device plus another one" in cilium?

Also there is a potencial race condition, because kube-ovn requires cilium to working and starts , and cilium requires ovn0 interface to add bpf program on it.

from cilium.

kvaps avatar kvaps commented on September 26, 2024

Closed in favor #32721

from cilium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.