Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: add support for memfd segments
[vpp.git]
/
src
/
vnet
/
tcp
/
builtin_client.c
diff --git
a/src/vnet/tcp/builtin_client.c
b/src/vnet/tcp/builtin_client.c
index
319b70f
..
2784591
100644
(file)
--- a/
src/vnet/tcp/builtin_client.c
+++ b/
src/vnet/tcp/builtin_client.c
@@
-100,7
+100,7
@@
send_test_chunk (tclient_main_t * tm, session_t * s)
evt.fifo = txf;
evt.event_type = FIFO_EVENT_APP_TX;
evt.fifo = txf;
evt.event_type = FIFO_EVENT_APP_TX;
- if (
unix_shared_memory
_queue_add
+ if (
svm
_queue_add
(tm->vpp_event_queue[txf->master_thread_index], (u8 *) & evt,
0 /* do wait for mutex */ ))
clib_warning ("could not enqueue event");
(tm->vpp_event_queue[txf->master_thread_index], (u8 *) & evt,
0 /* do wait for mutex */ ))
clib_warning ("could not enqueue event");
@@
-296,8
+296,8
@@
create_api_loopback (tclient_main_t * tm)
shmem_hdr = am->shmem_hdr;
tm->vl_input_queue = shmem_hdr->vl_input_queue;
shmem_hdr = am->shmem_hdr;
tm->vl_input_queue = shmem_hdr->vl_input_queue;
- tm->my_client_index =
-
vl_api_memclnt_create_internal ("tcp_test_client",
tm->vl_input_queue);
+ tm->my_client_index =
vl_api_memclnt_create_internal ("tcp_test_client",
+
tm->vl_input_queue);
return 0;
}
return 0;
}
@@
-429,21
+429,16
@@
static clib_error_t *
attach_builtin_test_clients_app (u8 * appns_id, u64 appns_flags,
u64 appns_secret)
{
attach_builtin_test_clients_app (u8 * appns_id, u64 appns_flags,
u64 appns_secret)
{
- u32
segment_name_length,
prealloc_fifos, segment_size = 2 << 20;
+ u32 prealloc_fifos, segment_size = 2 << 20;
tclient_main_t *tm = &tclient_main;
vnet_app_attach_args_t _a, *a = &_a;
tclient_main_t *tm = &tclient_main;
vnet_app_attach_args_t _a, *a = &_a;
- u8 segment_name[128];
u64 options[16];
clib_error_t *error = 0;
u64 options[16];
clib_error_t *error = 0;
- segment_name_length = ARRAY_LEN (segment_name);
-
memset (a, 0, sizeof (*a));
memset (options, 0, sizeof (options));
a->api_client_index = tm->my_client_index;
memset (a, 0, sizeof (*a));
memset (options, 0, sizeof (options));
a->api_client_index = tm->my_client_index;
- a->segment_name = segment_name;
- a->segment_name_length = segment_name_length;
a->session_cb_vft = &builtin_clients;
prealloc_fifos = tm->prealloc_fifos ? tm->expected_connections : 1;
a->session_cb_vft = &builtin_clients;
prealloc_fifos = tm->prealloc_fifos ? tm->expected_connections : 1;