Code Review
/
tldk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fbba0a3
)
tle_tcp_proces: fix the issue when strem can sit in the txs queue forever.
78/7078/1
author
Konstantin Ananyev
<
[email protected]
>
Mon, 5 Jun 2017 17:05:01 +0000
(18:05 +0100)
committer
Konstantin Ananyev
<
[email protected]
>
Fri, 9 Jun 2017 10:13:49 +0000
(11:13 +0100)
Change-Id: I313f048fc0888d661f8b0e34af6256afc516670a
Signed-off-by: Konstantin Ananyev <
[email protected]
>
lib/libtle_l4p/tcp_rxtx.c
patch
|
blob
|
history
diff --git
a/lib/libtle_l4p/tcp_rxtx.c
b/lib/libtle_l4p/tcp_rxtx.c
index
ff39f32
..
7429bf0
100644
(file)
--- a/
lib/libtle_l4p/tcp_rxtx.c
+++ b/
lib/libtle_l4p/tcp_rxtx.c
@@
-2417,11
+2417,12
@@
tle_tcp_process(struct tle_ctx *ctx, uint32_t num)
for (i = 0; i != k; i++) {
s = rs[i];
- if (rwl_try_acquire(&s->tx.use) > 0 &&
- rte_atomic32_read(&s->tx.arm) > 0) {
- rte_atomic32_set(&s->tx.arm, 0);
+ rte_atomic32_set(&s->tx.arm, 0);
+
+ if (rwl_try_acquire(&s->tx.use) > 0)
tx_stream(s, tms);
- }
+ else
+ txs_enqueue(s->s.ctx, s);
rwl_release(&s->tx.use);
}