From f65c06eea57bd42b5df91a5f7eb2005e7b6d04c6 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 26 Apr 2017 13:36:02 +0300 Subject: doc: net: Fix IP stack architecture data flow pictures The TX side of network data flow was changed so update the network architecture documentation. Change-Id: I88680a776dfe87a8dac868cba1b536f2c926c0cd Signed-off-by: Jukka Rissanen --- .../networking/ip-stack-architecture.rst | 5 +- doc/subsystems/networking/ip-stack-data-flow.dia | Bin 3735 -> 3184 bytes doc/subsystems/networking/ip-stack-data-flow.png | Bin 47931 -> 39217 bytes doc/subsystems/networking/ip-stack-data-flow.svg | 117 ++++++--------------- 4 files changed, 36 insertions(+), 86 deletions(-) diff --git a/doc/subsystems/networking/ip-stack-architecture.rst b/doc/subsystems/networking/ip-stack-architecture.rst index 0d6a30b6c..c302c2727 100644 --- a/doc/subsystems/networking/ip-stack-architecture.rst +++ b/doc/subsystems/networking/ip-stack-architecture.rst @@ -96,8 +96,9 @@ connectivity APIs, following things will happen. to the application, that means the packet was not sent correctly and the application needs to free the packet. -2) Each network interface has a TX thread associated with it and the TX thread - will send the packet to the correct device driver. +2) Each network interface has a dedicated TX queue used to send data to that + interface. A TX thread in the system reads all the TX queues and passes + that data to the correct L2 driver, for sending via the device driver. 3) If the device driver is able to inject the network packet into the network, then it will release the packet. Typically there are no diff --git a/doc/subsystems/networking/ip-stack-data-flow.dia b/doc/subsystems/networking/ip-stack-data-flow.dia index 4d8883bc9..9c047f1ca 100644 Binary files a/doc/subsystems/networking/ip-stack-data-flow.dia and b/doc/subsystems/networking/ip-stack-data-flow.dia differ diff --git a/doc/subsystems/networking/ip-stack-data-flow.png b/doc/subsystems/networking/ip-stack-data-flow.png index b99cad6dd..421e7c545 100644 Binary files a/doc/subsystems/networking/ip-stack-data-flow.png and b/doc/subsystems/networking/ip-stack-data-flow.png differ diff --git a/doc/subsystems/networking/ip-stack-data-flow.svg b/doc/subsystems/networking/ip-stack-data-flow.svg index a37ab2006..a9948d6d5 100644 --- a/doc/subsystems/networking/ip-stack-data-flow.svg +++ b/doc/subsystems/networking/ip-stack-data-flow.svg @@ -1,6 +1,6 @@ - + @@ -36,46 +36,29 @@ - RX Fiber + RX thread - RX FIFO + RX queue - - - - - TX Fiber, - One / Network Interface - - - - - - - TX FIFO - - - - - - - - TX Fiber, - One / Network Interface + + + + TX thread - - - - TX FIFO + + + + TX queues, + one / network interface @@ -84,42 +67,22 @@ - - - + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - + - + @@ -127,21 +90,21 @@ - Task + Task B - - TX + + TX - Task + Task A - - TX + + TX @@ -173,8 +136,8 @@ callback - - callback + + callback fifo @@ -185,30 +148,16 @@ fifo - - fifo - - - fifo - - - fifo + + fifo function call - - function - call - - - function - call - - - function - call + + function + call -- cgit v1.2.3