-
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
gnrc_netif: check all required options on initialization #10532
gnrc_netif: check all required options on initialization #10532
Conversation
94c0b4d
to
e8f4bba
Compare
Rebased to current #10524 |
@miri64: I could test |
e8f4bba
to
df34247
Compare
Rebased. |
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.
Looks code-wise good. I think some code was incorrectly merged, so comment above below.
Addressed comments |
Works with |
@maribu may I squash? |
I tested under @miri64's supervision: I rebased on master and tested running It worked for native: native
I have crashes for the following nrf52dk with
|
d7adb74
to
988bbc1
Compare
Does not crash anymore for
|
|
|
I tested
It does not crash in master but crashes here:
|
Latest commit fixes that. |
722a356
to
df16332
Compare
Rebased to include changes made in #10822. |
Thanks for all the testing @cladmi. I really appreciate it. Sadly the rebase means the tests should be run again :-/. |
There's some foobar happening due to my fixes to it in RIOT/sys/net/gnrc/netif/gnrc_netif.c Lines 1238 to 1240 in 59130e6
just with a |
Should now work. Note to self: provide some common mock netdevs for the most used device types... |
For the fixups I did not add any asserts to |
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.
From @miri64
However, now that I see that at least from a testing perspective this PR is more involved, I'd say we wait for after the feature freeze of the current release to merge this.
I just put a request changes to prevent merging too early.
Feel free to dismiss my review after the feature freeze or if you want to merge it anyway.
45d0db7
to
77a90eb
Compare
Rebased to current master. @cladmi I think you can remove your block now. |
With `DEVELHELP` activated all required options required by GNRC are now checked at interface initialization, so that developers of new link-layer protocols or device drivers notice as soon as possible that something is missing.
77a90eb
to
dd1f45d
Compare
In the meantime, I squashed. |
(Turns out you can press the merge buttons also via phone :-) ) |
(only if all CIs are happy ;-)) |
Contribution description
With
DEVELHELP
activated all required options required by GNRC are now checked at interface initialization, so that developers of new link-layer protocols or device drivers notice as soon as possible that something is missing.Testing procedure
All already supported L2 protocols up until this point should still work without crashing at the start when
DEVELHELP
is activated:Issues/PRs references
Depends on
#10524merged.