sys: net: Initial import of a simple data-forwarding MAC protocol (nomac)#1968
sys: net: Initial import of a simple data-forwarding MAC protocol (nomac)#1968OlegHahm merged 2 commits intoRIOT-OS:masterfrom
Conversation
|
@Kijewski Can't compute =D |
|
This happens when one does not implement macros properly. Please see miri64#8. |
|
Rebased |
|
Added #2027 as dependency |
99ec277 to
0f0d2ba
Compare
|
Rebased to #2027 |
|
looking (very) fast over this, I think it looks quite well. One thing that came to my mind is maybe renaming the mac implementation slightly? I was thinking about something like What do you guys think? |
|
Apart from me needing to rename it everywhere I have basically no objections. I even can see the benefit of it :-) |
|
Or rename |
|
|
|
And isn't that counter-intuitive to your rational behind the directory hierarchy in RIOT? |
|
The two sublayers of (data) link layer are logical link control and media access control and I would find it much easier to locate the protocol implementations that way. |
|
(rebased to master) |
There was a problem hiding this comment.
Somehow git grep gave some weird results yesterday.
There was a problem hiding this comment.
Never mind. I don't know what went wrong, but I overlooked the mentioned line.
|
Apart from the comments, I'm fine and think this is ready for squashing, but I would feel more comfortable if @haukepetersen or someone else could review, too. |
|
Addressed comments. |
|
@OlegHahm Was your last comment a request to squash? |
|
If @haukepetersen agrees, yes. |
|
To be clear: this is an ACK but I request a second reviewer. |
|
Then @haukepetersen should do so :D |
There was a problem hiding this comment.
I would not make this parameter static, but allocate it on the nomac thread's stack and give it as parameter during initialization...
There was a problem hiding this comment.
|
done :-) Just some small remarks/proposals. As I see it, some parts or subject to change with the upcoming |
|
I addressed your proposals. Since a thread-local registry would require another API change to |
|
Ok, sounds valid. ACK when squashed. |
|
Squashed |
|
Kicked Travis. |
There was a problem hiding this comment.
Was it moved in the last few weeks? (it compiles locally)
|
Rebased to master and adapted unittest includes to #2102. |
sys: net: Initial import of a simple data-forwarding MAC protocol (nomac)
This is basically an adapter translating
netapiIPC calls intonetdevfunction calls.Depends on
#1448(merged) and#2027(merged)