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
nodeid map: provide map via hive cell #25574
nodeid map: provide map via hive cell #25574
Conversation
0675fc9
to
af740bb
Compare
/test |
af740bb
to
61312c2
Compare
/test -> 🟢 |
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
61312c2
to
d4bb729
Compare
rebased to |
d4bb729
to
049aa55
Compare
rebased to @jrajahalme & @nathanjsweet: ready for review |
049aa55
to
10ef5b1
Compare
next rebase to |
}) | ||
return nodeMap | ||
type nodeMap struct { | ||
bpfMap *ebpf.Map |
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.
nit: This could have renamed unnamed as well? Or is there value in having to call bpf Map functions explicitly?
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.
i kind of prefer having the inner maps functions not exposed. kind of wrapping the functionality and not extending it as it would be when having it as anonymous field.
edit: and it kind of got implemented this way for all the other BPF maps which are provided via hive cell too
/test |
This commit introduces a hive cell for the nodeid map. The datapath cell has been refactored to depend on the nodeid map - which introduces proper init order before accessing the map during nodeid restoration (currently only working due to the fact, that the map gets implicitly opened when iterating over its entries). Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
10ef5b1
to
11843fb
Compare
rebased to @nathanjsweet : ready for review |
/test |
This commit introduces a hive cell for the nodeid map.
The datapath cell has been refactored to depend on the nodeid map - which introduces explicit dependencies with a proper init order.
This way, the map is properly initialized when accessing it for nodeid restoration. Currently this is only working due to the fact, that the map gets implicitly opened when iterating over its entries.
Follow up of #25497