[riot-notifications] [RIOT-OS/RIOT] [RFC] netif: add stack independent data and connection handlers (#11888)

José Alamos notifications at github.com
Fri Jul 26 13:32:21 CEST 2019


> So we only will support one interface with this API?

Yes, because the interface only passes data between network stack and MAC layers. 
The diagram looks like this:

Basically it's `Link Layer         <---l2_ops---->     netif        <----stack_api----->      Network Stack`

`l2_ops` (to be introduced) has almost the same members from `netif->ops`.

So, it means:
- `netif` is dependent on the network stack. This will take care of pkt allocation (stack dependent) and passing data between L2 and the network stack
- The Link Layer (LLC and MAC) are independent of the network stack. So, it's possible to send RAW IEEE802.15.4 without GNRC, or reuse the MAC layer for other network stacks (lwip, etc)

It will be more clear with the picture

> So let me try to understand again... these are just wrapper functions for l2->ops functions? Why not use those directly then instead of adding more overhead?

They certainly wrap `l2->ops`, but they also do extra stuff (e.g checking if the L2 layer should process the MAC layer if RAW, check if the interface is up, etc) 




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11888#issuecomment-515417639
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190726/04fdc3dc/attachment.htm>


More information about the notifications mailing list