diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2019-08-21 10:51:21 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-09-09 14:29:48 +0000 |
commit | 546f955b3dad6c0866a8ba778d0cfe1ef43d81d4 (patch) | |
tree | 6113bab6ae3dec547b6cc6467b0fb8db114e7728 /src/plugins/memif/memif.h | |
parent | bdf3ebe358787ef240dc9fadc515dfd178dfef7b (diff) |
memif: API cleanup
Use consistent API types.
memif_create now enables zero-copy by default.
Add no_zero_copy param to memif_create which
if set, disables zero copy.
Type: refactor
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: I11df8b9212c40de179ee71dc9da14039b982ede5
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/memif/memif.h')
-rw-r--r-- | src/plugins/memif/memif.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/memif/memif.h b/src/plugins/memif/memif.h index 3fbce91d68f..8539c984732 100644 --- a/src/plugins/memif/memif.h +++ b/src/plugins/memif/memif.h @@ -27,6 +27,8 @@ #define MEMIF_VERSION_MINOR 0 #define MEMIF_VERSION ((MEMIF_VERSION_MAJOR << 8) | MEMIF_VERSION_MINOR) +#define MEMIF_SECRET_SIZE 24 + /* * Type definitions */ @@ -85,7 +87,7 @@ typedef struct __attribute__ ((packed)) memif_version_t version; memif_interface_id_t id; memif_interface_mode_t mode:8; - uint8_t secret[24]; + uint8_t secret[MEMIF_SECRET_SIZE]; uint8_t name[32]; } memif_msg_init_t; |