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: improve use of session handles
[vpp.git]
/
src
/
vnet
/
session
/
application_interface.h
diff --git
a/src/vnet/session/application_interface.h
b/src/vnet/session/application_interface.h
index
4eee17e
..
f175e4a
100644
(file)
--- a/
src/vnet/session/application_interface.h
+++ b/
src/vnet/session/application_interface.h
@@
-126,7
+126,7
@@
typedef struct _vnet_bind_args_t
/*
* Results
*/
/*
* Results
*/
-
u64
handle;
+
session_handle_t
handle;
} vnet_listen_args_t;
typedef struct _vnet_unlisten_args_t
} vnet_listen_args_t;
typedef struct _vnet_unlisten_args_t
@@
-134,7
+134,7
@@
typedef struct _vnet_unlisten_args_t
union
{
char *uri;
union
{
char *uri;
-
u64 handle;
/**< Session handle */
+
session_handle_t handle;
/**< Session handle */
};
u32 app_index; /**< Owning application index */
u32 wrk_map_index; /**< App's local pool worker index */
};
u32 app_index; /**< Owning application index */
u32 wrk_map_index; /**< App's local pool worker index */
@@
-356,7
+356,7
@@
STATIC_ASSERT (sizeof (session_listen_uri_msg_t) <= SESSION_CTRL_MSG_MAX_SIZE,
typedef struct session_bound_msg_
{
u32 context;
typedef struct session_bound_msg_
{
u32 context;
-
u64
handle;
+
session_handle_t
handle;
i32 retval;
u8 lcl_is_ip4;
u8 lcl_ip[16];
i32 retval;
u8 lcl_is_ip4;
u8 lcl_ip[16];
@@
-379,15
+379,15
@@
typedef struct session_unlisten_msg_
typedef struct session_unlisten_reply_msg_
{
u32 context;
typedef struct session_unlisten_reply_msg_
{
u32 context;
-
u64
handle;
+
session_handle_t
handle;
i32 retval;
} __clib_packed session_unlisten_reply_msg_t;
typedef struct session_accepted_msg_
{
u32 context;
i32 retval;
} __clib_packed session_unlisten_reply_msg_t;
typedef struct session_accepted_msg_
{
u32 context;
-
u64
listener_handle;
-
u64
handle;
+
session_handle_t
listener_handle;
+
session_handle_t
handle;
uword server_rx_fifo;
uword server_tx_fifo;
u64 segment_handle;
uword server_rx_fifo;
uword server_tx_fifo;
u64 segment_handle;
@@
-404,7
+404,7
@@
typedef struct session_accepted_reply_msg_
{
u32 context;
i32 retval;
{
u32 context;
i32 retval;
-
u64
handle;
+
session_handle_t
handle;
} __clib_packed session_accepted_reply_msg_t;
typedef struct session_connect_msg_
} __clib_packed session_accepted_reply_msg_t;
typedef struct session_connect_msg_
@@
-444,7
+444,7
@@
typedef struct session_connected_msg_
{
u32 context;
i32 retval;
{
u32 context;
i32 retval;
-
u64
handle;
+
session_handle_t
handle;
uword server_rx_fifo;
uword server_tx_fifo;
u64 segment_handle;
uword server_rx_fifo;
uword server_tx_fifo;
u64 segment_handle;
@@
-474,33
+474,33
@@
typedef struct session_disconnected_msg_
{
u32 client_index;
u32 context;
{
u32 client_index;
u32 context;
-
u64
handle;
+
session_handle_t
handle;
} __clib_packed session_disconnected_msg_t;
typedef struct session_disconnected_reply_msg_
{
u32 context;
i32 retval;
} __clib_packed session_disconnected_msg_t;
typedef struct session_disconnected_reply_msg_
{
u32 context;
i32 retval;
-
u64
handle;
+
session_handle_t
handle;
} __clib_packed session_disconnected_reply_msg_t;
typedef struct session_reset_msg_
{
u32 client_index;
u32 context;
} __clib_packed session_disconnected_reply_msg_t;
typedef struct session_reset_msg_
{
u32 client_index;
u32 context;
-
u64
handle;
+
session_handle_t
handle;
} __clib_packed session_reset_msg_t;
typedef struct session_reset_reply_msg_
{
u32 context;
i32 retval;
} __clib_packed session_reset_msg_t;
typedef struct session_reset_reply_msg_
{
u32 context;
i32 retval;
-
u64
handle;
+
session_handle_t
handle;
} __clib_packed session_reset_reply_msg_t;
typedef struct session_req_worker_update_msg_
{
} __clib_packed session_reset_reply_msg_t;
typedef struct session_req_worker_update_msg_
{
-
u64
session_handle;
+
session_handle_t
session_handle;
} __clib_packed session_req_worker_update_msg_t;
/* NOTE: using u16 for wrk indices because message needs to fit in 18B */
} __clib_packed session_req_worker_update_msg_t;
/* NOTE: using u16 for wrk indices because message needs to fit in 18B */
@@
-509,12
+509,12
@@
typedef struct session_worker_update_msg_
u32 client_index;
u16 wrk_index;
u16 req_wrk_index;
u32 client_index;
u16 wrk_index;
u16 req_wrk_index;
-
u64
handle;
+
session_handle_t
handle;
} __clib_packed session_worker_update_msg_t;
typedef struct session_worker_update_reply_msg_
{
} __clib_packed session_worker_update_msg_t;
typedef struct session_worker_update_reply_msg_
{
-
u64
handle;
+
session_handle_t
handle;
uword rx_fifo;
uword tx_fifo;
u64 segment_handle;
uword rx_fifo;
uword tx_fifo;
u64 segment_handle;