-
Notifications
You must be signed in to change notification settings - Fork 2k
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
net/gnrc/ipv6/nib: remove direct dependency to xtimer #13666
Conversation
@@ -327,7 +327,7 @@ void gnrc_ipv6_nib_handle_pkt(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6, | |||
void gnrc_ipv6_nib_handle_timer_event(void *ctx, uint16_t type) | |||
{ | |||
DEBUG("nib: Handle timer event (ctx = %p, type = 0x%04x, now = %ums)\n", | |||
ctx, type, (unsigned)xtimer_now_usec() / 1000); | |||
ctx, type, (unsigned)evtimer_now_msec()); |
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.
This might result in different values. Not sure though.
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.
It will differ when xtimer_now_usec()
just has overflown. But I think it is okay ... it's just a debug message.
May I squash this PR? @miri64 Do you think your requested changes have been addressed? |
Yes, please squash. Keep the typo fix in a separate commit, please. The rest can become one commit (or two: one introducing the new functions one for the usage). |
This commit removes the implication that evtimer uses xtimer as timer backend.
6213439
to
877e0a9
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.
I tested so far:
tests/gnrc_ipv6_nib
onnative
andsamr21-xpro
tests/gnrc_ipv6_nib_6ln
onnative
andsamr21-xpro
I am running some manual long-term tests on native
and samr21-xpro
to see if NDP and 6Lo-ND still work as expected.
Thank you a lot :) |
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.
ACK. Behavior of timers for NS, NA, RS, RA, and their respective options is as I know it is master.
Contribution description
While working on #13661, I realized that
gnrc_ipv6_nib
implies that evtimer pulls in xtimer. #13661 replaces xtimer with ztimer and, thus, the implication is wrong andgnrc_ipv6_nib
cannot be built due to the missing xtimer.This contribution extends evtimer by getters to retrieve the current system time.
Testing procedure
tests/gnrc_ipv6_nib
should still pass.Issues/PRs references
#13661