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 canbus: isotp: Fix NULL deref after overflow 2020-02-10 12:32:01 +02:00
console console: Have CONSOLE_GET{CHAR,LINE} dep. on SERIAL_SUPPORT_INTERRUPT 2020-01-28 12:56:50 -06:00
cpp kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
debug kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
dfu Revert "global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT()" 2020-03-19 18:45:13 +01:00
disk gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
fb fb: Fix possible NULL pointer de-reference 2020-03-17 17:03:19 -05:00
fs Revert "global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT()" 2020-03-19 18:45:13 +01:00
jwt kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
logging Revert "global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT()" 2020-03-19 18:45:13 +01:00
mgmt subsys/mgmt: Fix mcumgr file download 2020-03-24 15:17:00 +01:00
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 random: remove rand32_timestamp.c 2020-03-10 10:40:13 -04:00
settings settings: settings_register static table does not need mutex 2020-02-08 10:07:38 +02:00
shell shell: Fix device service module 2020-03-26 14:52:47 -04:00
stats cleanup: include/: move stats.h to stats/stats.h 2019-06-27 22:55:49 -04:00
storage kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
testsuite arch: arm: aarch32: Rename cortex_r to cortex_a_r 2020-03-26 11:20:36 +01:00
tracing ext: debug: Move ctf_map.h to subsys/tracing/ctf 2020-03-20 22:56:19 -04:00
usb net: Enable PM settings on network devices 2020-03-27 14:48:30 +02:00
CMakeLists.txt tracing: move tracing under subsys/ 2020-02-07 15:58:05 -05:00
Kconfig tracing: move tracing under subsys/ 2020-02-07 15:58:05 -05:00