memif: fix zero-copy arg overwrite 79/21979/2
authorJakub Grajciar <jgrajcia@cisco.com>
Wed, 11 Sep 2019 08:21:17 +0000 (10:21 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 11 Sep 2019 17:08:54 +0000 (17:08 +0000)
Type: fix

Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: I9a34465c85597baecdbc672ce395265f7dbb7f00

src/plugins/memif/memif_api.c

index 5dafea3..60b9d5f 100644 (file)
@@ -149,9 +149,6 @@ vl_api_memif_create_t_handler (vl_api_memif_create_t * mp)
 
   args.is_zero_copy = mp->no_zero_copy ? 0 : 1;
 
-  /* enable zero-copy */
-  args.is_zero_copy = 1;
-
   /* rx/tx queues */
   if (args.is_master == 0)
     {