aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-03 16:46:52 -0800
committerDamjan Marion <dmarion@me.com>2019-03-04 11:15:50 +0000
commitd8402aee29c4f2737292ae0372c4012b0f6608e9 (patch)
tree6e13b8ea8f7cdf9604672df719fa14728fd9e987 /src/vnet
parentac626264ec5cbb3d727147ae336cac55eb37906e (diff)
session: eventfd for mq only for bapi socket transport
Change-Id: I9badb376aa31fc2c7c452a16cc4dc997a8a66d97 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/application.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 03e1eae3a85..e575a3df584 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -525,15 +525,17 @@ application_alloc_and_init (app_init_args_t * a)
}
else
{
- if (options[APP_OPTIONS_FLAGS] & APP_OPTIONS_FLAGS_EVT_MQ_USE_EVENTFD)
- {
- clib_warning ("mq eventfds can only be used if socket transport is "
- "used for api");
- return VNET_API_ERROR_APP_UNSUPPORTED_CFG;
- }
seg_type = SSVM_SEGMENT_PRIVATE;
}
+ if ((options[APP_OPTIONS_FLAGS] & APP_OPTIONS_FLAGS_EVT_MQ_USE_EVENTFD)
+ && seg_type != SSVM_SEGMENT_MEMFD)
+ {
+ clib_warning ("mq eventfds can only be used if socket transport is "
+ "used for binary api");
+ return VNET_API_ERROR_APP_UNSUPPORTED_CFG;
+ }
+
if (!application_verify_cfg (seg_type))
return VNET_API_ERROR_APP_UNSUPPORTED_CFG;