summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-09-04 10:32:49 +0200
committerDamjan Marion <dmarion@me.com>2019-09-04 19:52:13 +0000
commit63882357549a39c7be4b23b48418b8febb5b0e12 (patch)
treea98fc78f1b7062f6a717db549d59c2cdc4be0e84 /src/plugins
parent5bb23ecd098eac639641e2b3d62eb8744e0efef0 (diff)
memif: always enable zero-copy when creating memif using API
Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I823b6297e1d2bdd438633ec7b877960e6d8423fa
Diffstat (limited to 'src/plugins')
-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 ebe7a35c820..07990279fd4 100644
--- a/src/plugins/memif/memif_api.c
+++ b/src/plugins/memif/memif_api.c
@@ -144,6 +144,9 @@ vl_api_memif_create_t_handler (vl_api_memif_create_t * mp)
/* mode */
args.mode = mp->mode;
+ /* enable zero-copy */
+ args.is_zero_copy = 1;
+
/* rx/tx queues */
if (args.is_master == 0)
{