Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f23b151
)
vcl: avoid coalescing dgrams on read
44/30144/2
author
Florin Coras
<fcoras@cisco.com>
Thu, 26 Nov 2020 04:26:32 +0000
(20:26 -0800)
committer
Dave Barach
<openvpp@barachs.net>
Thu, 26 Nov 2020 19:22:25 +0000
(19:22 +0000)
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I035f1ef26202bbcf918548cbaa3cdbc17944bf8a
src/vcl/vppcom.c
patch
|
blob
|
history
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
da7693f
..
6c85cee
100644
(file)
--- a/
src/vcl/vppcom.c
+++ b/
src/vcl/vppcom.c
@@
-1909,10
+1909,10
@@
read_again:
e->session_index = s->session_index;
}
}
- else if (PREDICT_FALSE (rv < n))
+ else if (PREDICT_FALSE (rv < n
&& !s->is_dgram
))
{
/* More data enqueued while reading. Try to drain it
- * or fill the buffer */
+ * or fill the buffer
. Avoid doing that for dgrams
*/
buf += rv;
n -= rv;
goto read_again;