Searched refs:rv (Results 1 - 25 of 430) sorted by relevance

1234567891011>>

/vpp/src/plugins/lb/test/
H A Dtest_lb_api.py28 rv = self.vapi.lb_vip_dump()
29 # print(rv)
30 self.assertEqual(rv, [], 'Expected: [] Received: %r.' % rv)
35 rv = self.vapi.lb_as_dump()
36 # print(rv)
37 self.assertEqual(rv, [], 'Expected: [] Received: %r.' % rv)
45 # rv = self.vapi.lb_add_del_vip(pfx=ipaddress.IPv4Network(u'1.2.3.0/24'), # noqa
48 # print(rv)
[all...]
/vpp/test/
H A Dtest_vpe_api.py26 rv = self.vapi.cli('test log notice fib entry this is a test')
27 rv = self.vapi.log_dump()
29 print('\n'.join([str(v) for v in rv]))
30 self.assertTrue(rv)
33 rv = self.vapi.cli('test log notice fib entry this is a test')
34 rv = self.vapi.log_dump(start_timestamp=0.0)
36 print('\n'.join([str(v) for v in rv]))
37 self.assertTrue(rv)
40 rv = self.vapi.cli('test log debug fib entry test')
41 rv
[all...]
H A Dtest_endian.py26 rv = self.vapi.get_f64_endian_value(f64_one=F64_ONE)
27 self.assertEqual(rv.f64_one_result, F64_ONE,
30 F64_ONE, rv.f64_one_result))
36 rv = self.vapi.get_f64_increment_by_one(f64_value=42.0)
37 self.assertEqual(rv.f64_value, expected, 'Expected %r, received:%r.'
38 % (expected, rv.f64_value))
H A Dtest_cli.py35 rv = self.vapi.papi.cli_inband(cmd='this command does not exist')
36 self.assertNotEqual(rv.retval, 0)
38 rv = self.vapi.papi.cli_inband(cmd='show version')
39 self.assertEqual(rv.retval, 0)
45 rv = self.vapi.papi.cli_inband(cmd='wait 10')
49 rv = self.vapi.papi.cli_inband(cmd='wait 10', _timeout=15)
50 self.assertEqual(rv.retval, 0)
80 rv = self.vapi.papi.cli_inband(cmd='wait %s' % wait_secs)
H A Dtest_stats_client.py51 rv = self.vapi.papi.tap_create_v2(id=i, use_random_mac=1)
52 self.assertEqual(rv.retval, 0)
53 rv = self.vapi.papi.tap_delete_v2(sw_if_index=rv.sw_if_index)
54 self.assertEqual(rv.retval, 0)
/vpp/test/scripts/
H A Drun_in_venv_with_cleanup.sh3 rv=0
17 exit ${rv}
37 rv=$?
39 exit ${rv}
/vpp/extras/vom/vom/
H A Dconnection.cpp40 vapi_error_e rv; local
42 rv = m_vapi_conn->connect(m_app_name.c_str(),
45 return rv;
/vpp/src/plugins/unittest/
H A Dsvm_fifo_test.c231 int i, rv, verbose = 0; local
255 rv = svm_fifo_enqueue (f, sizeof (u32), (u8 *) test_data);
256 SFIFO_TEST ((rv == sizeof (u32)), "enqueued %d", rv);
269 rv = svm_fifo_enqueue (f, sizeof (u32), data);
270 rv = rv > 0 ? 0 : rv;
273 rv = svm_fifo_enqueue_with_offset (f, offset, sizeof (u32), data);
277 if (rv)
479 int i, rv, test_data_len; local
571 int i, rv; local
791 int i, rv, verbose = 0; local
870 int i, rv, verbose = 0; local
1005 int i, j, rv, __clib_unused verbose = 0; local
1093 int i, j, rv, __clib_unused verbose = 0; local
1173 int i, j, rv, __clib_unused verbose = 0; local
1244 int i, rv; local
1266 int i, rv; local
1292 int i, rv; local
1313 int i, rv; local
1333 int i, rv; local
1353 int i, rv; local
1371 int __clib_unused verbose = 0, fifo_size = 4096, fifo_inc = 4096, rv, i; local
1748 int i, rv; local
1902 int rv; local
2020 int rv; local
2083 int rv; local
2126 int rv, fifo_size = 4096, n_chunks, n_batch; local
2363 int rv, i; local
2413 int rv, i; local
2468 int rv; local
2528 int rv, alloc; local
2650 int rv, verbose = 0; local
[all...]
H A Dsegment_manager_test.c116 int rv; local
139 rv = vnet_application_attach (&attach_args);
140 SEG_MGR_TEST ((rv == 0), "vnet_application_attach %d", rv);
149 rv = fifo_segment_get_mem_status (fs0);
150 SEG_MGR_TEST ((rv == MEMORY_PRESSURE_NO_PRESSURE),
151 "fifo_segment_get_mem_status %s", states_str[rv]);
155 rv = segment_manager_alloc_session_fifos (sm,
158 SEG_MGR_TEST ((rv == 0), "segment_manager_alloc_session_fifos %d", rv);
280 int rv, i; local
410 int rv, i, fs_index; local
529 int rv, i; local
709 int rv; local
[all...]
/vpp/src/vcl/
H A Dldp.c180 int rv; local
187 rv = vls_app_create (ldp_get_app_name ());
188 if (rv != VPPCOM_OK)
191 if (rv == VPPCOM_EEXIST)
194 " failed! rv = %d (%s)\n", rv, vppcom_retval_str (rv));
196 return rv;
296 int rv, epfd; local
309 rv
374 int rv = 0, i, total = 0; local
444 int i, rv = 0; local
485 int rv = 0; local
538 int rv; local
554 int rv; local
570 int rv; local
708 int rv, bits_set = 0; local
971 int rv, sock_type = type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK); local
1030 int rv, sock_type = type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK); local
1055 int rv; local
1128 int rv = 0; local
1174 int rv; local
1216 int rv; local
1298 int rv; local
1374 int rv; local
1582 int rv; local
1672 int i, rv; local
1766 int i, rv; local
1860 int rv; local
1984 int rv; local
2082 int rv; local
2114 int rv; local
2181 int rv = 0, flags; local
2221 int rv; local
2265 int rv; local
2352 int libc_epfd, rv = 0; local
2429 int libc_epfd, rv = 0, num_ev; local
2556 int rv, i, n_revents = 0; local
[all...]
/vpp/test/ext/
H A Dvapi_c_test.c58 vapi_error_e rv = vapi_ctx_alloc (&ctx); local
59 ck_assert_int_eq (VAPI_OK, rv);
62 rv = vapi_send (ctx, sv);
63 ck_assert_int_eq (VAPI_EINVAL, rv);
64 rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
66 ck_assert_int_eq (VAPI_OK, rv);
67 rv = vapi_send (ctx, NULL);
68 ck_assert_int_eq (VAPI_EINVAL, rv);
69 rv = vapi_send (NULL, NULL);
70 ck_assert_int_eq (VAPI_EINVAL, rv);
309 show_version_cb(vapi_ctx_t ctx, void *caller_ctx, vapi_error_e rv, bool is_last, vapi_payload_show_version_reply * p) argument
332 loopback_create_cb(vapi_ctx_t ctx, void *caller_ctx, vapi_error_e rv, bool is_last, vapi_payload_create_loopback_reply * p) argument
351 loopback_delete_cb(vapi_ctx_t ctx, void *caller_ctx, vapi_error_e rv, bool is_last, vapi_payload_delete_loopback_reply * p) argument
364 vapi_error_e rv = vapi_ctx_alloc (&ctx); local
381 vapi_error_e rv = vapi_ctx_alloc (&ctx); local
391 vapi_error_e rv = vapi_ctx_alloc (&ctx); local
411 vapi_error_e rv = vapi_send (ctx, sv); local
434 vapi_error_e rv = vapi_show_version (ctx, sv, show_version_cb, &called); local
452 sw_interface_dump_cb(struct vapi_ctx_s *ctx, void *callback_ctx, vapi_error_e rv, bool is_last, vapi_payload_sw_interface_details * reply) argument
506 vapi_error_e rv = local
522 vapi_error_e rv; local
546 vapi_error_e rv = local
575 vapi_error_e rv; local
597 vapi_error_e rv; local
637 vapi_error_e rv; local
751 vapi_error_e rv; local
779 show_version_no_cb(vapi_ctx_t ctx, void *caller_ctx, vapi_error_e rv, bool is_last, vapi_payload_show_version_reply * p) argument
793 vapi_error_e rv; local
816 no_msg_cb(struct vapi_ctx_s *ctx, void *callback_ctx, vapi_error_e rv, bool is_last, vapi_payload_sw_interface_details * reply) argument
831 vapi_error_e rv; local
[all...]
/vpp/src/plugins/dpdk/device/
H A Dcommon.c30 dpdk_device_error (dpdk_device_t * xd, char *str, int rv) argument
33 format_dpdk_device_name, xd->port_id, rv, rte_strerror (rv));
35 str, xd->port_id, rv, rte_strerror (rv));
49 int rv; local
90 rv = rte_eth_dev_configure (xd->port_id, xd->rx_q_used,
93 if (rv < 0)
95 dpdk_device_error (xd, "rte_eth_dev_configure", rv);
103 rv
168 int rv; local
[all...]
/vpp/src/vnet/ip/
H A Dpunt_api.c89 int rv; local
91 rv = ip_address_family_decode (in->af, &out->af);
92 if (rv < 0)
93 return (rv);
94 rv = ip_proto_decode (in->protocol, &out->protocol);
95 if (rv < 0)
96 return (rv);
99 return (rv);
106 int rv; local
108 rv
120 int rv; local
131 int rv; local
203 int rv; local
228 int rv; local
308 int rv; local
[all...]
/vpp/src/vlibapi/
H A Dapi_helper_macros.h33 rv = vl_msg_api_pd_handler (mp, rv); \
41 rmp->retval = ntohl(rv); \
49 rv = vl_msg_api_pd_handler (mp, rv); \
57 rmp->retval = ntohl(rv); \
65 rv = vl_msg_api_pd_handler (mp, rv); \
73 rmp->retval = rv; \
85 rv
[all...]
/vpp/extras/deprecated/vppinfra/
H A Dpfhash.h149 u32 rv; local
174 rv = (is_equal0 & kv->values[0])
177 return rv;
184 u32 rv = (u32) ~ 0; local
197 rv = (kv->kb.k_u64[0] == key[0]) ? kv->values[0] : rv;
198 rv = (kv->kb.k_u64[1] == key[0]) ? kv->values[1] : rv;
199 rv = (kv->kb.k_u64[2] == key[0]) ? kv->values[2] : rv;
210 u64 rv = (u64) ~ 0; local
[all...]
/vpp/src/examples/sample-plugin/sample/
H A Dsample.c52 int rv = 0; local
67 return rv;
79 int rv; local
94 rv = sample_macswap_enable_disable (sm, sw_if_index, enable_disable);
96 switch(rv) {
111 rv);
134 int rv; local
136 rv = sample_macswap_enable_disable (sm, ntohl(mp->sw_if_index),
/vpp/src/plugins/cdp/
H A Dcdp.c38 int rv = 0; local
54 return rv;
64 int rv; local
76 rv = cdp_enable_disable (cm, enable_disable);
78 switch (rv)
84 return clib_error_return (0, "cdp_enable_disable returned %d", rv);
104 int rv; local
106 rv = cdp_enable_disable (cm, (int) (mp->enable_disable));
/vpp/src/svm/
H A Dsvm.h36 u8 *rv; local
40 rv = clib_mem_alloc (size);
43 return (rv);
52 u8 *rv; local
56 rv = clib_mem_alloc_aligned_at_offset (size, align, offset,
60 return (rv);
/vpp/src/plugins/builtinurl/
H A Dbuiltinurl.c68 int rv; local
70 rv = builtinurl_enable (bmp);
72 switch (rv)
83 return clib_error_return (0, "builtinurl_enable returned %d", rv);
103 int rv; local
105 rv = builtinurl_enable (bmp);
/vpp/src/vnet/syslog/
H A Dsyslog_api.c53 int rv = 0; local
82 rv = VNET_API_ERROR_INVALID_VALUE;
85 return rv;
91 int rv = 0; local
119 rv = VNET_API_ERROR_INVALID_VALUE;
123 return rv;
135 int rv = set_syslog_sender (&collector, ntohs (mp->collector_port), &src, local
144 int rv = 0; local
172 int rv = 0; local
175 rv
188 int rv = 0; local
[all...]
/vpp/src/plugins/svs/
H A Dsvs_api.c67 int rv = 0; local
69 rv = fib_proto_from_api_address_family (mp->af, &fproto);
70 if (rv < 0)
75 rv = svs_table_add (fproto, ntohl (mp->table_id));
79 rv = svs_table_delete (fproto, ntohl (mp->table_id));
91 int rv = 0; local
97 rv = svs_route_add (ntohl (mp->table_id), &pfx,
102 rv = svs_route_delete (ntohl (mp->table_id), &pfx);
113 int rv = 0; local
117 rv
[all...]
/vpp/src/plugins/ioam/encap/
H A Dip6_ioam_seqno.c44 int rv = 0; local
49 return rv;
55 return (rv);
67 int rv = 0; local
75 return (rv);
/vpp/src/plugins/urpf/
H A Durpf_api.c60 int rv = 0; local
64 rv = urpf_mode_decode (mp->mode, &mode);
66 if (rv)
69 rv = ip_address_family_decode (mp->af, &af);
71 if (rv)
/vpp/src/plugins/ikev2/
H A Dikev2_api.c194 int rv = 0; local
201 rv = VNET_API_ERROR_UNSPECIFIED;
203 rv = VNET_API_ERROR_UNIMPLEMENTED;
213 int rv = 0; local
222 rv = VNET_API_ERROR_UNSPECIFIED;
224 rv = VNET_API_ERROR_UNIMPLEMENTED;
235 int rv = 0; local
248 rv = VNET_API_ERROR_UNSPECIFIED;
250 rv = VNET_API_ERROR_UNIMPLEMENTED;
260 int rv local
286 int rv = 0; local
307 int rv = 0; local
333 int rv = 0; local
353 int rv = 0; local
379 int rv = 0; local
407 int rv = 0; local
434 int rv = 0; local
464 int rv = 0; local
488 int rv = 0; local
514 int rv = 0; local
538 int rv = 0; local
559 int rv = 0; local
580 int rv = 0; local
[all...]
/vpp/src/vppinfra/
H A Dmacros.c67 int rv; local
69 rv = clib_macro_unset (mm, name);
75 return rv;
98 i8 *rv = 0; local
118 vec_add1 (rv, *s);
176 vec_append (rv, ts);
178 _vec_len (rv) = vec_len (rv) - 1;
185 vec_append (rv, format (0, "UNSET "));
186 _vec_len (rv)
204 i8 *rv; local
315 u8 *rv = (u8 *) clib_macro_eval_dollar (mm, (i8 *) nses[i].name, local
[all...]

Completed in 17 milliseconds

1234567891011>>