diff --git a/lib/sock/vpp/vpp.c b/lib/sock/vpp/vpp.c index 43825a6422..5d8e5878ea 100644 --- a/lib/sock/vpp/vpp.c +++ b/lib/sock/vpp/vpp.c @@ -436,6 +436,9 @@ spdk_vpp_sock_writev(struct spdk_sock *_sock, struct iovec *iov, int iovcnt) } } else { total += rc; + if (rc < iov[i].iov_len) { + break; + } } } return total;