aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vpp/perf/l2/10ge2p1x520-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-ndrpdrdisc.robot
blob: 6613adf037c0c78b0001d67859ff84e364c68200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Copyright (c) 2017 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:
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

*** Settings ***
| Resource | resources/libraries/robot/performance/performance_setup.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
| ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | FEATURE | MACIP | ACL_STATELESS
| ... | IACL | ACL50 | 100_FLOWS
| ...
| Suite Setup | Run Keywords
| ... | Set up 3-node performance topology with DUT's NIC model | L2
| ... | Intel-X520-DA2
| ... | AND | Set up performance test suite with ACL
| Suite Teardown | Tear down 3-node performance topology
| ...
| Test Setup | Set up performance test
| ...
| Test Teardown | Tear down performance test with MACIP ACL
| ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
| ...
| Documentation | *RFC2544: Packet throughput L2BD test cases with ACL*
| ...
| ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
| ... | with single links between nodes.
| ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
| ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 bridge domain\
| ... | and MAC learning enabled. DUT2 is configured with L2 cross-connects.\
| ... | Required MACIP ACL rules are applied to input paths of both DUT1\
| ... | interfaces. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by\
| ... | Intel.
| ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
| ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
| ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
| ... | of packets transmitted. NDR and PDR are discovered for different\
| ... | Ethernet L2 frame sizes using either binary search or linear search\
| ... | algorithms with configured starting rate and final step that determines\
| ... | throughput measurement resolution. Test packets are generated by TG on\
| ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
| ... | (flow-group per direction, ${flows_per_dir} flows per flow-group) with\
| ... | all packets containing Ethernet header, IPv4 header with IP protocol=61\
| ... | and static payload. MAC addresses are matching MAC addresses of the TG\
| ... | node interfaces.
| ... | *[Ref] Applicable standard specifications:* RFC2544.

*** Variables ***
# X520-DA2 bandwidth limit
| ${s_limit}= | ${10000000000}

# ACL test setup
| ${acl_action}= | permit
| ${no_hit_aces_number}= | 50
| ${flows_per_dir}= | 100

# starting points for non-hitting ACLs
| ${src_ip_start}= | 30.30.30.1
| ${ip_step}= | ${1}
| ${src_mac_start}= | 01:02:03:04:05:06
| ${src_mac_step}= | ${1000}
| ${src_mac_mask}= | 00:00:00:00:00:00
| ${tg_stream1_mac}= | ca:fe:00:00:00:00
| ${tg_stream2_mac}= | fa:ce:00:00:00:00
| ${tg_mac_mask}= | ff:ff:ff:ff:ff:80
| ${tg_stream1_subnet}= | 10.0.0.0/24
| ${tg_stream2_subnet}= | 20.0.0.0/24

# traffic profile
| ${traffic_profile}= | trex-sl-3n-ethip4-macsrc100ip4src100

*** Keywords ***
| Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | ...
| | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
| | ...
| | Set Test Variable | ${framesize}
| | Set Test Variable | ${min_rate}
| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
| | ${binary_min}= | Set Variable | ${min_rate}
| | ${binary_max}= | Set Variable | ${max_rate}
| | ${threshold}= | Set Variable | ${min_rate}
| | ...
| | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
| | And Add PCI devices to all DUTs
| | ${get_framesize}= | Get Frame Size | ${framesize}
| | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
| | And Apply startup configuration on all VPP DUTs
| | When Initialize L2 bridge domain with MACIP ACLs on DUT1 in 3-node circular topology
| | Then Run Keyword If | '${search_type}' == 'NDR'
| | ... | Find NDR using binary search and pps
| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
| | ... | ${min_rate} | ${max_rate} | ${threshold}
| | ... | ELSE IF | '${search_type}' == 'PDR'
| | ... | Find PDR using binary search and pps
| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
| | ... | ${min_rate} | ${max_rate} | ${threshold}
| | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}

*** Test Cases ***
| tc01-64B-1t1c-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-ndrdisc
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with MACIP ACL with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
| | ... | linerate, step 50kpps.
| | ...
| | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
| | ...
| | [Template] | Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR

| tc02-64B-1t1c-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-pdrdisc
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with MACIP ACL with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
| | ... | linerate, step 50kpps, LT=0.5%.
| | ...
| | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
| | ...
| | [Template] | Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR

| tc03-64B-2t2c-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-ndrdisc
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with MACIP ACL with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
| | ... | linerate, step 50kpps.
| | ...
| | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
| | ...
| | [Template] | Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR

| tc04-64B-2t2c-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-pdrdisc
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with MACIP ACL with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
| | ... | linerate, step 50kpps, LT=0.5%.
| | ...
| | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
| | ...
| | [Template] | Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR

| tc05-64B-4t4c-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-ndrdisc
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with MACIP ACL with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
| | ... | linerate, step 50kpps.
| | ...
| | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
| | ...
| | [Template] | Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=NDR

| tc06-64B-4t4c-eth-l2bdbasemaclrn-macip-iacl50sl-100flows-pdrdisc
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with MACIP ACL with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
| | ... | linerate, step 50kpps, LT=0.5%.
| | ...
| | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
| | ...
| | [Template] | Discover NDR or PDR for L2 Bridge Domain with MACIP ACLs
| | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=PDR
an class="n">sock_test_t test = rx_cfg->test; if (rx_cfg->ctrl_handle == conn->fd) { int i; clock_gettime (CLOCK_REALTIME, &conn->stats.stop); for (i = 0; i < ssm->conn_pool_size; i++) { sock_server_conn_t *tc = &ssm->conn_pool[i]; if (tc->cfg.ctrl_handle == conn->fd) { sock_test_stats_accumulate (&conn->stats, &tc->stats); if (conn->cfg.verbose) { static char buf[64]; sprintf (buf, "SERVER (fd %d) RESULTS", tc->fd); sock_test_stats_dump (buf, &tc->stats, 1 /* show_rx */ , test == SOCK_TEST_TYPE_BI /* show tx */ , conn->cfg.verbose); } } } sock_test_stats_dump ("SERVER RESULTS", &conn->stats, 1 /* show_rx */ , (test == SOCK_TEST_TYPE_BI) /* show_tx */ , conn->cfg.verbose); sock_test_cfg_dump (&conn->cfg, 0 /* is_client */ ); if (conn->cfg.verbose) { printf (" sock server main\n" SOCK_TEST_SEPARATOR_STRING " buf: %p\n" " buf size: %u (0x%08x)\n" SOCK_TEST_SEPARATOR_STRING, conn->buf, conn->buf_size, conn->buf_size); } sync_config_and_reply (conn, rx_cfg); printf ("\nSERVER (fd %d): %s-directional Stream Test Complete!\n" SOCK_TEST_BANNER_STRING "\n", conn->fd, test == SOCK_TEST_TYPE_BI ? "Bi" : "Uni"); } else { printf ("\n" SOCK_TEST_BANNER_STRING "SERVER (fd %d): %s-directional Stream Test!\n" " Sending client the test cfg to start streaming data...\n", client_fd, test == SOCK_TEST_TYPE_BI ? "Bi" : "Uni"); rx_cfg->ctrl_handle = (rx_cfg->ctrl_handle == ~0) ? conn->fd : rx_cfg->ctrl_handle; sync_config_and_reply (conn, rx_cfg); /* read the 1st chunk, record start time */ memset (&conn->stats, 0, sizeof (conn->stats)); clock_gettime (CLOCK_REALTIME, &conn->stats.start); } } static inline void stream_test_server (sock_server_conn_t * conn, int rx_bytes) { int client_fd = conn->fd; sock_test_t test = conn->cfg.test; if (test == SOCK_TEST_TYPE_BI) (void) vcl_test_write (client_fd, conn->buf, rx_bytes, &conn->stats, conn->cfg.verbose); if (conn->stats.rx_bytes >= conn->cfg.total_bytes) { clock_gettime (CLOCK_REALTIME, &conn->stats.stop); } } static inline void new_client (void) { sock_server_main_t *ssm = &sock_server_main; int client_fd; sock_server_conn_t *conn; if (ssm->conn_pool_size < (ssm->num_conn + SOCK_SERVER_MAX_TEST_CONN + 1)) conn_pool_expand (SOCK_SERVER_MAX_TEST_CONN + 1); conn = conn_pool_alloc (); if (!conn) { fprintf (stderr, "\nSERVER: ERROR: No free connections!\n"); return; } client_fd = vppcom_session_accept (ssm->listen_fd, &conn->endpt, 0); if (client_fd < 0) { int errno_val; errno_val = errno = -client_fd; perror ("ERROR in new_client()"); fprintf (stderr, "SERVER: ERROR: accept failed " "(errno = %d)!\n", errno_val); return; } printf ("SERVER: Got a connection -- fd = %d (0x%08x)!\n", client_fd, client_fd); conn->fd = client_fd; { struct epoll_event ev; int rv; ev.events = EPOLLIN; ev.data.u64 = conn - ssm->conn_pool; rv = vppcom_epoll_ctl (ssm->epfd, EPOLL_CTL_ADD, client_fd, &ev); if (rv < 0) { int errno_val; errno_val = errno = -rv; perror ("ERROR in new_client()"); fprintf (stderr, "SERVER: ERROR: epoll_ctl failed (errno = %d)!\n", errno_val); } else ssm->nfds++; } } void print_usage_and_exit (void) { fprintf (stderr, "sock_test_server [OPTIONS] <port>\n" " OPTIONS\n" " -h Print this message and exit.\n" " -6 Use IPv6\n" " -u Use UDP transport layer\n"); exit (1); } int main (int argc, char **argv) { sock_server_main_t *ssm = &sock_server_main; int client_fd, rv, main_rv = 0; int tx_bytes, rx_bytes, nbytes; sock_server_conn_t *conn; sock_test_cfg_t *rx_cfg; uint32_t xtra = 0; uint64_t xtra_bytes = 0; struct sockaddr_storage servaddr; int errno_val; int c, v, i; uint16_t port = SOCK_TEST_SERVER_PORT; vppcom_endpt_t endpt; opterr = 0; while ((c = getopt (argc, argv, "6D")) != -1) switch (c) { case '6': ssm->cfg.address_ip6 = 1; break; case 'D': ssm->cfg.transport_udp = 1; break; case '?': switch (optopt) { default: if (isprint (optopt)) fprintf (stderr, "SERVER: ERROR: Unknown " "option `-%c'.\n", optopt); else fprintf (stderr, "SERVER: ERROR: Unknown " "option character `\\x%x'.\n", optopt); } /* fall thru */ case 'h': default: print_usage_and_exit (); } if (argc < (optind + 1)) { fprintf (stderr, "SERVER: ERROR: Insufficient number of arguments!\n"); print_usage_and_exit (); } if (sscanf (argv[optind], "%d", &v) == 1) port = (uint16_t) v; else { fprintf (stderr, "SERVER: ERROR: Invalid port (%s)!\n", argv[optind]); print_usage_and_exit (); } conn_pool_expand (SOCK_SERVER_MAX_TEST_CONN + 1); rv = vppcom_app_create ("vcl_test_server"); if (rv) { errno_val = errno = -rv; perror ("ERROR in main()"); fprintf (stderr, "SERVER: ERROR: vppcom_app_create() failed " "(errno = %d)!\n", errno_val); return -1; } else { ssm->listen_fd = vppcom_session_create (ssm->cfg.transport_udp ? VPPCOM_PROTO_UDP : VPPCOM_PROTO_TCP, 0 /* is_nonblocking */ ); } if (ssm->listen_fd < 0) { errno_val = errno = -ssm->listen_fd; perror ("ERROR in main()"); fprintf (stderr, "SERVER: ERROR: vppcom_session_create() failed " "(errno = %d)!\n", errno_val); return -1; } memset (&servaddr, 0, sizeof (servaddr)); if (ssm->cfg.address_ip6) { struct sockaddr_in6 *server_addr = (struct sockaddr_in6 *) &servaddr; server_addr->sin6_family = AF_INET6; server_addr->sin6_addr = in6addr_any; server_addr->sin6_port = htons (port); } else { struct sockaddr_in *server_addr = (struct sockaddr_in *) &servaddr; server_addr->sin_family = AF_INET; server_addr->sin_addr.s_addr = htonl (INADDR_ANY); server_addr->sin_port = htons (port); } if (ssm->cfg.address_ip6) { struct sockaddr_in6 *server_addr = (struct sockaddr_in6 *) &servaddr; endpt.is_ip4 = 0; endpt.ip = (uint8_t *) & server_addr->sin6_addr; endpt.port = (uint16_t) server_addr->sin6_port; } else { struct sockaddr_in *server_addr = (struct sockaddr_in *) &servaddr; endpt.is_ip4 = 1; endpt.ip = (uint8_t *) & server_addr->sin_addr; endpt.port = (uint16_t) server_addr->sin_port; } rv = vppcom_session_bind (ssm->listen_fd, &endpt); if (rv < 0) { errno_val = errno = -rv; perror ("ERROR in main()"); fprintf (stderr, "SERVER: ERROR: bind failed (errno = %d)!\n", errno_val); return -1; } rv = vppcom_session_listen (ssm->listen_fd, 10); if (rv < 0) { errno_val = errno = -rv; perror ("ERROR in main()"); fprintf (stderr, "SERVER: ERROR: listen failed " "(errno = %d)!\n", errno_val); return -1; } ssm->epfd = vppcom_epoll_create (); if (ssm->epfd < 0) { errno_val = errno = -ssm->epfd; perror ("ERROR in main()"); fprintf (stderr, "SERVER: ERROR: epoll_create failed (errno = %d)!\n", errno_val); return -1; } ssm->listen_ev.events = EPOLLIN; ssm->listen_ev.data.u32 = ~0; rv = vppcom_epoll_ctl (ssm->epfd, EPOLL_CTL_ADD, ssm->listen_fd, &ssm->listen_ev); if (rv < 0) { errno_val = errno = -rv; perror ("ERROR in main()"); fprintf (stderr, "SERVER: ERROR: epoll_ctl failed " "(errno = %d)!\n", errno_val); return -1; } printf ("\nSERVER: Waiting for a client to connect on port %d...\n", port); while (1) { int num_ev; num_ev = vppcom_epoll_wait (ssm->epfd, ssm->wait_events, SOCK_SERVER_MAX_EPOLL_EVENTS, 60.0); if (num_ev < 0) { errno = -num_ev; perror ("epoll_wait()"); fprintf (stderr, "\nSERVER: ERROR: epoll_wait() " "failed -- aborting!\n"); main_rv = -1; goto done; } else if (num_ev == 0) { fprintf (stderr, "\nSERVER: epoll_wait() timeout!\n"); continue; } for (i = 0; i < num_ev; i++) { conn = &ssm->conn_pool[ssm->wait_events[i].data.u32]; if (ssm->wait_events[i].events & (EPOLLHUP | EPOLLRDHUP)) { vppcom_session_close (conn->fd); continue; } if (ssm->wait_events[i].data.u32 == ~0) { new_client (); continue; } client_fd = conn->fd; if (EPOLLIN & ssm->wait_events[i].events) { rx_bytes = vcl_test_read (client_fd, conn->buf, conn->buf_size, &conn->stats); if (rx_bytes > 0) { rx_cfg = (sock_test_cfg_t *) conn->buf; if (rx_cfg->magic == SOCK_TEST_CFG_CTRL_MAGIC) { if (rx_cfg->verbose) { printf ("SERVER (fd %d): Received a cfg message!\n", client_fd); sock_test_cfg_dump (rx_cfg, 0 /* is_client */ ); } if (rx_bytes != sizeof (*rx_cfg)) { printf ("SERVER (fd %d): Invalid cfg message " "size (%d)!\n Should be %lu bytes.\n", client_fd, rx_bytes, sizeof (*rx_cfg)); conn->cfg.rxbuf_size = 0; conn->cfg.num_writes = 0; if (conn->cfg.verbose) { printf ("SERVER (fd %d): Replying to " "cfg message!\n", client_fd); sock_test_cfg_dump (rx_cfg, 0 /* is_client */ ); } vcl_test_write (client_fd, (uint8_t *) & conn->cfg, sizeof (conn->cfg), NULL, conn->cfg.verbose); continue; } switch (rx_cfg->test) { case SOCK_TEST_TYPE_NONE: case SOCK_TEST_TYPE_ECHO: sync_config_and_reply (conn, rx_cfg); break; case SOCK_TEST_TYPE_BI: case SOCK_TEST_TYPE_UNI: stream_test_server_start_stop (conn, rx_cfg); break; case SOCK_TEST_TYPE_EXIT: printf ("SERVER: Have a great day, " "connection %d!\n", client_fd); vppcom_session_close (client_fd); conn_pool_free (conn); printf ("SERVER: Closed client fd %d\n", client_fd); ssm->nfds--; if (!ssm->nfds) { printf ("SERVER: All client connections " "closed.\n\nSERVER: " "May the force be with you!\n\n"); goto done; } break; default: fprintf (stderr, "SERVER: ERROR: Unknown test type!\n"); sock_test_cfg_dump (rx_cfg, 0 /* is_client */ ); break; } continue; } else if ((conn->cfg.test == SOCK_TEST_TYPE_UNI) || (conn->cfg.test == SOCK_TEST_TYPE_BI)) { stream_test_server (conn, rx_bytes); continue; } else if (isascii (conn->buf[0])) { /* If it looks vaguely like a string, * make sure it's terminated. */ ((char *) conn->buf)[rx_bytes < conn->buf_size ? rx_bytes : conn->buf_size - 1] = 0; printf ("SERVER (fd %d): RX (%d bytes) - '%s'\n", conn->fd, rx_bytes, conn->buf); } } else // rx_bytes < 0 { if (errno == ECONNRESET) { printf ("\nSERVER: Connection reset by remote peer.\n" " Y'all have a great day now!\n\n"); break; } else continue; } if (isascii (conn->buf[0])) { /* If it looks vaguely like a string, * make sure it's terminated */ ((char *) conn->buf)[rx_bytes < conn->buf_size ? rx_bytes : conn->buf_size - 1] = 0; if (xtra) fprintf (stderr, "SERVER: ERROR: " "FIFO not drained in previous test!\n" " extra chunks %u (0x%x)\n" " extra bytes %lu (0x%lx)\n", xtra, xtra, xtra_bytes, xtra_bytes); xtra = 0; xtra_bytes = 0; if (conn->cfg.verbose) printf ("SERVER (fd %d): Echoing back\n", client_fd); nbytes = strlen ((const char *) conn->buf) + 1; tx_bytes = vcl_test_write (client_fd, conn->buf, nbytes, &conn->stats, conn->cfg.verbose); if (tx_bytes >= 0) printf ("SERVER (fd %d): TX (%d bytes) - '%s'\n", conn->fd, tx_bytes, conn->buf); } else // Extraneous read data from non-echo tests??? { xtra++; xtra_bytes += rx_bytes; } } } } done: vppcom_session_close (ssm->listen_fd); vppcom_app_destroy (); if (ssm->conn_pool) free (ssm->conn_pool); return main_rv; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */