X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Funittest%2Ftcp_test.c;h=3db04050136681027ceebd2ef00cd5bc15d3c352;hb=cc4d6d022fb0d4b4f0ea9f63e9c6b1c0e8d95cca;hp=b98d360ca510d16870228cbe05b2f6a0fd85a55a;hpb=ad1e455f4d27624f79ca441114932e274cda8ab1;p=vpp.git diff --git a/src/plugins/unittest/tcp_test.c b/src/plugins/unittest/tcp_test.c index b98d360ca51..3db04050136 100644 --- a/src/plugins/unittest/tcp_test.c +++ b/src/plugins/unittest/tcp_test.c @@ -505,7 +505,9 @@ tcp_test_sack_rx (vlib_main_t * vm, unformat_input_t * input) sb->last_sacked_bytes); TCP_TEST ((sb->last_bytes_delivered == 0), "last bytes delivered %d", sb->last_bytes_delivered); + /* Hole should be split in 2 lost holes that add up to 300 */ TCP_TEST ((sb->lost_bytes == 300), "lost bytes %u", sb->lost_bytes); + TCP_TEST ((sb->reorder == 7), "reorder %u", sb->reorder); /* * Ack [100 300] in two steps @@ -590,7 +592,9 @@ tcp_test_sack_rx (vlib_main_t * vm, unformat_input_t * input) sb->last_sacked_bytes); TCP_TEST ((sb->last_bytes_delivered == 0), "last bytes delivered %d", sb->last_bytes_delivered); - TCP_TEST ((sb->lost_bytes == 200), "lost bytes %u", sb->lost_bytes); + /* No bytes lost because of reorder */ + TCP_TEST ((sb->lost_bytes == 0), "lost bytes %u", sb->lost_bytes); + TCP_TEST ((sb->reorder == 7), "reorder %u", sb->reorder); TCP_TEST ((!sb->is_reneging), "is not reneging"); /*