Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vcl: avoid coalescing dgrams on read
[vpp.git]
/
src
/
vcl
/
vppcom.c
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;
}
}
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
{
/* 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;
buf += rv;
n -= rv;
goto read_again;