memif: always enable zero-copy when creating memif using API 01/22101/3
authorJakub Grajciar <jgrajcia@cisco.com>
Wed, 4 Sep 2019 08:32:49 +0000 (10:32 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 18 Sep 2019 13:44:07 +0000 (13:44 +0000)
Type: fix

Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: I823b6297e1d2bdd438633ec7b877960e6d8423fa
(cherry picked from commit 63882357549a39c7be4b23b48418b8febb5b0e12)

src/plugins/memif/memif_api.c

index ebe7a35..0799027 100644 (file)
@@ -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)
     {