X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcl_test.h;h=a5a8ad19488e3e2362e9444d36f0b7f7d5360295;hb=68b24e2c9ae80839d15f680959cce31ca3ec2123;hp=638d519d95c6a57f1515ee916644031bc2c16a1c;hpb=34a3a08d993cbbb3846b83b69b5338d452463e15;p=vpp.git diff --git a/src/vcl/vcl_test.h b/src/vcl/vcl_test.h index 638d519d95c..a5a8ad19488 100644 --- a/src/vcl/vcl_test.h +++ b/src/vcl/vcl_test.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Cisco and/or its affiliates. + * Copyright (c) 2017-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -509,6 +509,7 @@ vcl_test_write (int fd, uint8_t * buf, uint32_t nbytes, if (tx_bytes != nbytes) { nbytes_left = nbytes_left - rv; + buf += rv; if (stats) stats->tx_incomp++; }