diff options
author | Radha krishna Saragadam <krishna_srk2003@yahoo.com> | 2022-07-18 19:41:05 +0530 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-07-20 14:47:09 +0000 |
commit | dd92bdeb0735dac940d32f651c0b0b9ed65a6d7d (patch) | |
tree | d1f722eb0068f6c2eb1578c3e3600718b868312f /src/vcl/vppcom.h | |
parent | 3f245e687c6bd837dcf7c6734aeed788bdbb4220 (diff) |
vcl: new vcl api to get detailed session errors
Sometimes VPP rejects application connection requests
due to various reasons. Some errors application can
retry to get a successful connection.
In a non-blocking session, VCL sends EPOLLHUP.
An application can call a new API
vppcom_session_get_error to find the details and retry
depending on the error.
Type: fix
Signed-off-by: Radha krishna Saragadam <krishna_srk2003@yahoo.com>
Change-Id: If0e21a8e25701f66a190a2799b2209e0c31f897c
Diffstat (limited to 'src/vcl/vppcom.h')
-rw-r--r-- | src/vcl/vppcom.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index c50850c9cc3..6e15cd17cd4 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -102,6 +102,7 @@ typedef enum VPPCOM_ENOPROTOOPT = -ENOPROTOOPT, VPPCOM_EPIPE = -EPIPE, VPPCOM_ENOENT = -ENOENT, + VPPCOM_EADDRINUSE = -EADDRINUSE } vppcom_error_t; typedef enum @@ -264,6 +265,13 @@ extern void vppcom_worker_index_set (int); */ extern int vppcom_worker_mqs_epfd (void); +/** + * Returns Session error + * + * Application can use this API to find the detailed session error + */ +extern int vppcom_session_get_error (uint32_t session_handle); + /* *INDENT-OFF* */ #ifdef __cplusplus } |