Skip to content

*: make dumps retry in netlink library, remove safenetlink package#44315

Draft
ti-mo wants to merge 4 commits intocilium:mainfrom
ti-mo:tb/remove-safenetlink
Draft

*: make dumps retry in netlink library, remove safenetlink package#44315
ti-mo wants to merge 4 commits intocilium:mainfrom
ti-mo:tb/remove-safenetlink

Conversation

@ti-mo
Copy link
Copy Markdown
Contributor

@ti-mo ti-mo commented Feb 12, 2026

Just trying out whether this works, but will send this upstream if it does.

Remove safenetlink package after adding retries to upstream netlink package

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 12, 2026
@ti-mo ti-mo added the release-note/misc This PR makes changes that have no direct user impact. label Feb 12, 2026
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 12, 2026
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Feb 12, 2026

/test

@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 6472ff7 to 2bbb391 Compare March 3, 2026 14:27
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 3, 2026

/test

1 similar comment
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 3, 2026

/test

@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 2bbb391 to 918b98f Compare March 4, 2026 08:17
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 4, 2026

/test

@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 918b98f to 1761ce4 Compare March 4, 2026 10:01
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 4, 2026

/test

@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 1761ce4 to 8c3036f Compare March 4, 2026 11:03
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 4, 2026

/test

1 similar comment
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 4, 2026

/test

@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 8c3036f to e6f9dc8 Compare March 4, 2026 15:57
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 4, 2026

/test

1 similar comment
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 4, 2026

/test

@ti-mo ti-mo changed the title *: make retry dumps in netlink library, remove safenetlink package *: make dumps retry in netlink library, remove safenetlink package Mar 18, 2026
@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from e6f9dc8 to da3e477 Compare March 18, 2026 16:01
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 18, 2026

/test

1 similar comment
@cilium-ariane
Copy link
Copy Markdown

cilium-ariane bot commented Mar 18, 2026

/test

@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch 2 times, most recently from 1e528d2 to 7690639 Compare March 18, 2026 19:04
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Mar 18, 2026

/test

1 similar comment
@cilium-ariane
Copy link
Copy Markdown

cilium-ariane bot commented Mar 18, 2026

/test

ti-mo added 2 commits April 3, 2026 09:07
Signed-off-by: Timo Beckers <timo@isovalent.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 7690639 to 2ea87df Compare April 3, 2026 07:09
@ti-mo
Copy link
Copy Markdown
Contributor Author

ti-mo commented Apr 3, 2026

/test

@cilium-ariane
Copy link
Copy Markdown

cilium-ariane bot commented Apr 3, 2026

/test

ti-mo added 2 commits April 3, 2026 11:22
This commit removes package safenetlink, and adds a small wrapper package for
netlink.NewHandle that takes care of setting defaults. The forbidigo config
is update to enforce usage of inl.NewHandle() over netlink.NewHandle().

Lastly, add a testutils/inl subpackage with a NetNSHandle function for easy
Handle creation in tests.

Signed-off-by: Timo Beckers <timo@isovalent.com>
In order to enable the new implicit retry behaviour across the board,
the global netlink handle needs to be configured to do so. This is done as a
side effect of importing package inl.

Configure the handle in:
- cilium-agent
- cilium-dbg
- cilium-cni
- bugtool

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo force-pushed the tb/remove-safenetlink branch from 2ea87df to 76257c8 Compare April 3, 2026 09:31
@cilium-ariane
Copy link
Copy Markdown

cilium-ariane bot commented Apr 3, 2026

/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants