summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-09-04 10:32:49 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-18 13:44:07 +0000
commit7c33c343e8312bf6d2478f23367818874d0ce46c (patch)
treef977a3ea0b00338e2499dfb5ce45561c1a931541
parent50f8831068c838735cf4a007d36864a745e73773 (diff)
memif: always enable zero-copy when creating memif using API
Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I823b6297e1d2bdd438633ec7b877960e6d8423fa (cherry picked from commit 63882357549a39c7be4b23b48418b8febb5b0e12)
-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)
{