zephyr/subsys/net/lib/zperf
Luca Fancellu d61dcf2f1d net: zperf: improve code quality for tcp_received function
Currently, in tcp_received function defined in zperf_tcp_receiver
module, the assignment of session->state to STATE_COMPLETED is
overwritten on the same path to STATE_NULL and a session is
considered free for both STATE_COMPLETED and STATE_NULL, so remove
the assignment to STATE_NULL.
Remove the break from the STATE_COMPLETED case handling so that it
can fallthrough, in case the same session is used after finish.
Remove also the STATE_LAST_PACKET_RECEIVED case because this state
is never reached.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
2023-02-28 18:12:52 +01:00
..
CMakeLists.txt net: zperf: Make shell dependency optional 2023-01-03 11:02:01 +01:00
Kconfig net: zperf: add configurable for the zperf sessions number 2023-02-28 18:12:52 +01:00
zperf_common.c net: zperf: Make shell dependency optional 2023-01-03 11:02:01 +01:00
zperf_internal.h net: zperf: Make shell dependency optional 2023-01-03 11:02:01 +01:00
zperf_session.c net: zperf: unify get_session among TCP and UDP 2023-02-28 18:12:52 +01:00
zperf_session.h net: zperf: unify get_session among TCP and UDP 2023-02-28 18:12:52 +01:00
zperf_shell.c net: lib: zperf: Add support to disable Nagle's algorithm 2023-02-20 09:53:43 +01:00
zperf_tcp_receiver.c net: zperf: improve code quality for tcp_received function 2023-02-28 18:12:52 +01:00
zperf_tcp_uploader.c net: lib: zperf: Add support to disable Nagle's algorithm 2023-02-20 09:53:43 +01:00
zperf_udp_receiver.c net: zperf: Make UDP/TCP servers restartable 2022-12-22 11:05:11 +01:00
zperf_udp_uploader.c net: zperf: Implement asynchronous upload API 2022-12-22 11:05:11 +01:00