From: Florin Coras Date: Thu, 26 Nov 2020 04:26:32 +0000 (-0800) Subject: vcl: avoid coalescing dgrams on read X-Git-Tag: v21.06-rc0~106 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F30144%2F2;p=vpp.git vcl: avoid coalescing dgrams on read Type: improvement Signed-off-by: Florin Coras Change-Id: I035f1ef26202bbcf918548cbaa3cdbc17944bf8a --- 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;