2019-02-01 23:11:18 +08:00
|
|
|
.. _net_offload_interface:
|
|
|
|
|
2019-02-27 21:29:53 +08:00
|
|
|
Network Traffic Offloading
|
|
|
|
==========================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
:depth: 2
|
|
|
|
|
2019-02-26 21:44:42 +08:00
|
|
|
Network Offloading
|
|
|
|
##################
|
2019-02-01 23:11:18 +08:00
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
2019-02-20 19:15:16 +08:00
|
|
|
The network offloading API provides hooks that a device vendor can use
|
|
|
|
to provide an alternate implementation for an IP stack. This means that the
|
|
|
|
actual network connection creation, data transfer, etc., is done in the vendor
|
|
|
|
HAL instead of the Zephyr network stack.
|
2019-02-01 23:11:18 +08:00
|
|
|
|
|
|
|
API Reference
|
|
|
|
*************
|
|
|
|
|
|
|
|
.. doxygengroup:: net_offload
|
|
|
|
:project: Zephyr
|
2019-02-26 21:44:42 +08:00
|
|
|
|
2019-03-14 16:06:45 +08:00
|
|
|
.. _net_socket_offloading:
|
|
|
|
|
2019-02-26 21:44:42 +08:00
|
|
|
Socket Offloading
|
|
|
|
#################
|
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
|
|
|
In addition to the network offloading API, Zephyr allows offloading of networking
|
|
|
|
functionality at the socket API level. With this approach, vendors who provide an
|
|
|
|
alternate implementation of the networking stack, exposing socket API for their
|
|
|
|
networking devices, can easily integrate it with Zephyr.
|
|
|
|
|
|
|
|
See :zephyr_file:`drivers/wifi/simplelink/simplelink_sockets.c` for a sample
|
|
|
|
implementation on how to integrate network offloading at socket level.
|
|
|
|
|
|
|
|
API Reference
|
|
|
|
*************
|
|
|
|
|
|
|
|
.. doxygengroup:: socket_offload
|
|
|
|
:project: Zephyr
|