aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/memif_api.c
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2017-09-08 15:40:32 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-09-11 10:15:43 +0000
commita19e1054b58024891691eaebeb13700cdce57fea (patch)
tree1fa8043e94b45a22dd27a40876534d4f5ea12983 /src/plugins/memif/memif_api.c
parent1500254bee11355bbd69cc1dd9705be4f002f2bd (diff)
memif: mode ip is not settable from binary API
While mode ip is supported via the CLI for creating a memif interface, it is not settable from the binary API due to missing code. While at it, update the help usage to include the missing keyword secret. Change-Id: Ia9c71f4017210a5e1733ce4992fbb566b7d20c1a Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/plugins/memif/memif_api.c')
-rw-r--r--src/plugins/memif/memif_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/memif/memif_api.c b/src/plugins/memif/memif_api.c
index 89afdb8d681..07347bc05a4 100644
--- a/src/plugins/memif/memif_api.c
+++ b/src/plugins/memif/memif_api.c
@@ -133,6 +133,9 @@ vl_api_memif_create_t_handler (vl_api_memif_create_t * mp)
/* role */
args.is_master = (mp->role == 0);
+ /* mode */
+ args.mode = mp->mode;
+
/* rx/tx queues */
if (args.is_master == 0)
{