Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
svm: refactor memfd and remove ssvm_eth
[vpp.git]
/
src
/
vlibmemory
/
socket_client.c
diff --git
a/src/vlibmemory/socket_client.c
b/src/vlibmemory/socket_client.c
index
4567f65
..
44d2122
100644
(file)
--- a/
src/vlibmemory/socket_client.c
+++ b/
src/vlibmemory/socket_client.c
@@
-21,7
+21,7
@@
#define __USE_GNU
#include <sys/socket.h>
#define __USE_GNU
#include <sys/socket.h>
-#include <svm/
memfd
.h>
+#include <svm/
ssvm
.h>
#include <vlibmemory/socket_client.h>
#include <vlibmemory/memory_client.h>
#include <vlibmemory/socket_client.h>
#include <vlibmemory/memory_client.h>
@@
-231,7
+231,7
@@
static void vl_api_sock_init_shm_reply_t_handler
int my_fd = -1;
clib_error_t *error;
i32 retval = ntohl (mp->retval);
int my_fd = -1;
clib_error_t *error;
i32 retval = ntohl (mp->retval);
-
memfd
_private_t memfd;
+
ssvm
_private_t memfd;
api_main_t *am = &api_main;
u8 *new_name;
api_main_t *am = &api_main;
u8 *new_name;
@@
-255,7
+255,7
@@
static void vl_api_sock_init_shm_reply_t_handler
memfd.fd = my_fd;
/* Note: this closes memfd.fd */
memfd.fd = my_fd;
/* Note: this closes memfd.fd */
- retval =
memfd_slave_init
(&memfd);
+ retval =
ssvm_slave_init_memfd
(&memfd);
if (retval)
clib_warning ("WARNING: segment map returned %d", retval);
if (retval)
clib_warning ("WARNING: segment map returned %d", retval);