-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix NatDumpCreated #27062
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
Fix NatDumpCreated #27062
Conversation
Commit 0432a8367369cf618c090932b1a1214e16b8dda9 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
f55a9cd
to
b65e278
Compare
Commit 0432a8367369cf618c090932b1a1214e16b8dda9 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
b65e278
to
f29c105
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.
Nice work! just a few picks...
f29c105
to
d51f3d3
Compare
This pull request has been automatically marked as stale because it |
d51f3d3
to
01ebed8
Compare
01ebed8
to
1b19b51
Compare
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.
@gentoo-root Thank you for the updates. Just a few minor comments
1b19b51
to
71a9ff3
Compare
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.
@gentoo-root Thank you for the updates Maxim!
35ae468
to
101c56e
Compare
/test |
45f55cf
to
a32f253
Compare
Timestamps in CT and NAT maps use different units depending on the clocksource: seconds with ktime, and scaled jiffies with jiffies. Put the common functions into a new package that will also be used in the following commits. Signed-off-by: Maxim Mikityanskiy <maxim@isovalent.com>
entryCreated in NatDumpCreated is measured in seconds or scaled jiffies, depending on the clocksource. However, the function treats this value as nanoseconds, returning wrong values. Fix it by doing the proper calculation that considers the clocksource. Fixes: e838397 ("bpf: switch NAT entry to more lightweight mono clock source") Signed-off-by: Maxim Mikityanskiy <maxim@isovalent.com>
If the agent is not running, get the clocksource from the config file, similar to getIpv6EnableStatus(). Signed-off-by: Maxim Mikityanskiy <maxim@isovalent.com>
a32f253
to
06730af
Compare
/test |
See the commit messages.