net/gnrc/ipv6/nib: remove direct dependency to xtimer#13666
net/gnrc/ipv6/nib: remove direct dependency to xtimer#13666miri64 merged 3 commits intoRIOT-OS:masterfrom
Conversation
| { | ||
| 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.
This might result in different values. Not sure though.
There was a problem hiding this comment.
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
miri64
left a comment
There was a problem hiding this comment.
I tested so far:
tests/gnrc_ipv6_nibonnativeandsamr21-xprotests/gnrc_ipv6_nib_6lnonnativeandsamr21-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 :) |
miri64
left a comment
There was a problem hiding this comment.
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_nibimplies that evtimer pulls in xtimer. #13661 replaces xtimer with ztimer and, thus, the implication is wrong andgnrc_ipv6_nibcannot be built due to the missing xtimer.This contribution extends evtimer by getters to retrieve the current system time.
Testing procedure
tests/gnrc_ipv6_nibshould still pass.Issues/PRs references
#13661