aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-11-25 20:26:32 -0800
committerDave Barach <openvpp@barachs.net>2020-11-26 19:22:25 +0000
commit54fe32cdff3cf12d0321eceecaf3776b9ce6504d (patch)
tree4030aac134ede2a1e330887b682157569102f430 /src/vcl
parentf23b1514a85f603d17036a598b6e3f329441abe8 (diff)
vcl: avoid coalescing dgrams on read
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I035f1ef26202bbcf918548cbaa3cdbc17944bf8a
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vppcom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index da7693fa08f..6c85ceedd67 100644
--- 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;