• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cilium / cilium / 41142
39%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2022 08:05AM UTC
Jobs 3
Files 935
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Apr 2022 07:24AM UTC coverage: 33.914% (+0.01%) from 33.904%
41142

push

travis-ci-com

borkmann
datapath: Allow egress GW with XDP

The XDP-based NodePort acceleration currently can't be used in
combination with EgressGW. The underlying reason is that bpf_xdp has no
support for tunnel encapsulation, so it can't redirect the EgressGW's
return traffic. The EgressGW processing is done in nodeport_lb4() and
rev_nodeport_lb4() from lib/nodeport.h (tech debt).

Improve this situation by skipping the tunnel-forward in
rev_nodeport_lb4() when called from XDP context. Thus return traffic for
the EgressGW gets reverse-SNATed inside XDP, and is then passed up to
bpf_host with XFER_PKT_NO_SVC. It bypasses the NodePort processing, and
enters the kernel stack where it gets forwarded to the tunnel netdev due
to an IP route in the host netns stack (i.e., "pod cidr on node X via
cilium_vxlan").

This lets users run with the NodePort acceleration and EgressGW enabled
at the same time. Note that the approach of letting the kernel forward
the traffic into the tunnel can fail (if the iptables' default policy
for the FORWARD chain is DROP).

Long-term we want to cleanly handle this with tunneling support inside
bpf_xdp [1].

[1]: https://github.com/cilium/cilium/issues/17770

The commit message was suggested by Julian Wiedmann.

Signed-off-by: Martynas Pumputis <m@lambda.lt>

4 of 4 new or added lines in 1 file covered. (100.0%)

47403 of 139776 relevant lines covered (33.91%)

6306.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41142.1 29 Apr 2022 08:06AM UTC 0
33.89
Travis Job 41142.1
2 41142.2 29 Apr 2022 08:05AM UTC 0
33.9
Travis Job 41142.2
3 41142.3 (RACE=1 BASE_IMAGE=quay.io/cilium/cilium-runtime:fbffa51a34a16a156cbee235c206894f687114fa@sha256:294918335a8a86a0719c1e24f402aa7ee37bd948750893e1a28e7dd3b2a79ed2 LOCKDEBUG=1) 29 Apr 2022 08:15AM UTC 0
33.92
Travis Job 41142.3
Source Files on build 41142
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #41142
  • ad4a900d on github
  • Prev Build on master (#41126)
  • Next Build on master (#41150)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc