X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvppcom.c;h=6c85ceedd6708aec96cc5d30937178d6e80751e5;hb=54fe32cdff3cf12d0321eceecaf3776b9ce6504d;hp=da7693fa08f24e9b784f8c9a43ba5a27dd6ea855;hpb=f23b1514a85f603d17036a598b6e3f329441abe8;p=vpp.git 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;