gnrc_netif2: provide raw adaption layer (for e.g. SLIP)#7462
gnrc_netif2: provide raw adaption layer (for e.g. SLIP)#7462miri64 merged 2 commits intoRIOT-OS:gnrc_netif2_integration/masterfrom
Conversation
af42055 to
3ee5ac6
Compare
|
Rebased to current master and current dependencies |
3ee5ac6 to
2259fae
Compare
|
Rebased to current master and dependencies. |
|
@kaspar030 made some comments about my usage of LOG_ERROR() in #7410. I will remove them here and in the other PRs. |
6419ecb to
cfd6d45
Compare
|
Squashed and rebased. @kYc0o, please review ASAP. |
| #define SLIPDEV_STACKSIZE (THREAD_STACKSIZE_DEFAULT) | ||
| #ifndef SLIPDEV_PRIO | ||
| #define SLIPDEV_PRIO (GNRC_NETDEV_MAC_PRIO) | ||
| #define SLIPDEV_PRIO (GNRC_NETIF2_PRIO) |
There was a problem hiding this comment.
With the embargo and the plans to not support any legacy driver belonging to "netif1", is there a reason to keep this called "netif2"?
There was a problem hiding this comment.
The embargo is against master. Not against the branch the embargo is up in the first place ;-). And the rename is definitely planned (but only after everything is merged and definitely not in this only marginally related PR) ;-).
There was a problem hiding this comment.
It just came to my mind because I saw it here, not because this PR would be the one where to do the renaming.
I'll test asap.
|
Ping @kYc0o? |
cfd6d45 to
5e2de89
Compare
|
Rebased to current #7925. |
5e2de89 to
30c772a
Compare
|
Another day a another rebase. |
|
The code here doesn't look that complicated. I can give it a try this evening (CET) if nobody picked it up for review until then |
30c772a to
6038a7d
Compare
|
That would be great! Until then: rebased again. If you want to test: just connect to boards via their UART, configure that UART to be the SLIP UART and test with |
|
Something like this? Tested on a nucleo-f446 with a separate USB to serial converter. I'll have a closer look at the code later, but functionally everything looks working. |
|
If you had been sending this data, yes! :-) |
|
Two results so far:
|
|
|
Works better now. with example/gnrc_border_router, the device doesn't seem to respond to ping requests or responses on the link local address, but I can see packet arriving correctly on the tunslip side with tcpdump. |
Will investigate tomorrow. |
|
@bergzand the problem is in fact, that Linux doesn't answers to RIOT's neighbor solicitations, so this is actually something we need to fix in the NIB (i.e. don't do address resolution for SLIP). Since that is not really about |
|
I remember vaguely that the old slip implementation also had this issue. Maybe @kYc0o can confirm that. With that in mind, my opinion would be to keep this PR to reproduce the functionality of the old slip module (but with netif2 and such) and build a new PR for the other SLIP related issues. |
|
ACK on the code, can't find any issues with it. Now continuing with the functional testing of slipdev. :) |
Remember that this PR is about integrating |
Yeah, you're right. I'm going to ACK this one as it appears to be working. I'm experiencing some stability issues with either not receiving any frames anymore or easily being able to crash the tunslip6 application. It appears that these issues are not related to this code, but could be in the lower layers (#7381 or the UART driver). |
Thanks (both for review and in advance for the further testing)! |
|
Please do not merge yet! Murdock reports an error, that is not related to #7414! I investigate. |
|
Fixed! @bergzand tell me when I might squash? |
Oh, completely forgot about that again, go ahead with the squash -_- Edit: Oh, didn't forget it this time, just a last minute fix :) |
No problem. The only squashable commit was the one I just added before my request to squash ;-) |
c809cc6 to
852cb5a
Compare
|
All remaining failures are related to #7414. So let's go! |
Another adaption layer for #7370. This time for SLIP (#7381).
Depends on the mentioned PRs.
This PR is part of the network layer remodelling effort:
