From 7cb471a0279ab2a3740a49d6ce9cf7b24f0a3f4d Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 23 Jul 2021 08:39:26 -0700 Subject: session vcl: support abstract sockets for app ns App namespaces can now be associated to a linux ip netns, e.g.: app ns add id secret sw_if_index netns If session layer's app sock api is enabled, this triggers the creation of an abstract listening socket in the netns that has been configured. For the example above that would be @vpp/session/. Consequently, vcl, or other apps attaching to vpp, can connect to said abstract socket from an ip netns without the need to share unix domain socket files. In particular, for vcl it's enough to set app-socket-api to @vpp/session/ in the conf file. Type: feature Signed-off-by: Florin Coras Change-Id: I26fdc626a760a3f423c5b8be4251623f6e9cd73a --- src/vnet/session/application_namespace.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vnet/session/application_namespace.h') diff --git a/src/vnet/session/application_namespace.h b/src/vnet/session/application_namespace.h index ddc6d08c2fc..313b2d0e63d 100644 --- a/src/vnet/session/application_namespace.h +++ b/src/vnet/session/application_namespace.h @@ -50,6 +50,11 @@ typedef struct _app_namespace */ u8 *ns_id; + /** + * Linux netns if one was provided + */ + u8 *netns; + /** * Name of socket applications can use to attach to session layer */ @@ -64,6 +69,7 @@ typedef struct _app_namespace typedef struct _vnet_app_namespace_add_del_args { u8 *ns_id; + u8 *netns; u64 secret; u32 sw_if_index; u32 ip4_fib_id; -- cgit 1.2.3-korg