zephyr/subsys
Jukka Rissanen 15dfa28c2e net: tc: Return information whether TX pkt was queued
We need to know whether the net_pkt was successfully placed
to transmit queue. It is possible in TX side, that the net_pkt
is already in TX queue when for example TCP packet is
re-transmitted, in which case the queue submit will fail.
This cannot happen in RX side as there are no timers involved.

It is required to check about such pending flag before trying to submit
it into the queue. Indeed, the work queue could be scheduled right after
such queuing, thus checking for the pending flag afterwards would
provide a false information.

It is unfortunate k_work_submit_to_queue() does not return anything as
it would simplify the code then.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-03-27 14:48:30 +02:00
..
bluetooth Bluetooth: controller: ticker minor code optimization 2020-03-27 11:37:36 +01:00
canbus
console
cpp
debug
dfu
disk
fb
fs
jwt
logging
mgmt
net net: tc: Return information whether TX pkt was queued 2020-03-27 14:48:30 +02:00
power power: policy: only bring devices to low-power when in sleep mode 2 2020-03-25 16:21:33 -04:00
random
settings
shell shell: Fix device service module 2020-03-26 14:52:47 -04:00
stats
storage
testsuite arch: arm: aarch32: Rename cortex_r to cortex_a_r 2020-03-26 11:20:36 +01:00
tracing
usb net: Enable PM settings on network devices 2020-03-27 14:48:30 +02:00
CMakeLists.txt
Kconfig