Skip to content

route: Fix table assignment of nexthop route#8312

Closed
tgraf wants to merge 1 commit intomasterfrom
pr/tgraf/fix-route
Closed

route: Fix table assignment of nexthop route#8312
tgraf wants to merge 1 commit intomasterfrom
pr/tgraf/fix-route

Conversation

@tgraf
Copy link
Copy Markdown
Contributor

@tgraf tgraf commented Jun 17, 2019

Waiting for #8322 to be merged

The nexthop route was injected into the default table instead of the table
specified. This code path was not used so far, this is a fix for a potential
future usage.

Fixes: fec5499 ("route: Fix route replacement logic for IPv6")


This change is Reviewable

The nexthop route was injected into the default table instead of the table
specified. This code path was not used so far, this is a fix for a potential
future usage.

Fixes: fec5499 ("route: Fix route replacement logic for IPv6")

Signed-off-by: Thomas Graf <thomas@cilium.io>
@tgraf tgraf added the kind/bug This is a bug in the Cilium logic. label Jun 17, 2019
@tgraf tgraf requested a review from a team June 17, 2019 08:38
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 41.968% when pulling 69a2dda on pr/tgraf/fix-route into 5337067 on master.

@tgraf
Copy link
Copy Markdown
Contributor Author

tgraf commented Jun 17, 2019

test-me-please

@tgraf
Copy link
Copy Markdown
Contributor Author

tgraf commented Jun 17, 2019

@jrfastab I see that the IPsec code may depend on the old broken behavior. Is this intentional?

@tgraf tgraf added the wip label Jun 18, 2019
@jrfastab
Copy link
Copy Markdown
Contributor

The encryption path was using the next hop rule to match the outer IP tunnel IP and route the packet to cilium_host to clear the mark fields (so it doesn't try to encrypt again) and to redirect to tunnel device if in tunnel mode.

couple options either add a flag to keep the current behavior or probably a bit more clean set an explicit route in default table.

@tgraf
Copy link
Copy Markdown
Contributor Author

tgraf commented Jun 24, 2019

Pulled in via #8322

@tgraf tgraf closed this Jun 24, 2019
@tgraf tgraf deleted the pr/tgraf/fix-route branch June 24, 2019 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug This is a bug in the Cilium logic.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants