memif: Add new API calls to manage memif socket names. 72/10172/4
authorJon Loeliger <jdl@netgate.com>
Tue, 16 Jan 2018 22:37:16 +0000 (16:37 -0600)
committerDamjan Marion <damarion@cisco.com>
Mon, 29 Jan 2018 12:09:57 +0000 (13:09 +0100)
commit30349b075cf939549980f2a32e030b32f6d07e9a
treeebf4a6e10c49cd9657cefeadafbaa44f07c5c021
parentb4d43d7901b49bdda4345adb86b4d15a5d72f7ff
memif: Add new API calls to manage memif socket names.

New API calls and corresponding CLI commands allow the user
to manage the socket filenames for memif connections using:

    vppctl# create memif id <u32> filename <socket-filename>
    vppctl# delete memif id <u32>

and then referencing it later in a memif interface:

    vppctl# create memif <u32> socket-id <id> mode <mode> <master|slave> ...

Corresponding VAT cli entries have also been added.

The default memif socket file at id 0 are still always present.
The existing memif create/delete CLI commands have been slightly
altered into the new syntax:

    vppctl# create interface memif ...
    vppctl# delete interface memif ...

Change-Id: If2bdc7eac3d81e1d9011a5869747e52fc5e11639
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/memif/cli.c
src/plugins/memif/device.c
src/plugins/memif/memif.api
src/plugins/memif/memif.c
src/plugins/memif/memif_api.c
src/plugins/memif/memif_test.c
src/plugins/memif/private.h