diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2019-09-04 10:32:49 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-09-18 13:44:07 +0000 |
commit | 7c33c343e8312bf6d2478f23367818874d0ce46c (patch) | |
tree | f977a3ea0b00338e2499dfb5ce45561c1a931541 /src/plugins/memif | |
parent | 50f8831068c838735cf4a007d36864a745e73773 (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)
Diffstat (limited to 'src/plugins/memif')
-rw-r--r-- | src/plugins/memif/memif_api.c | 3 |
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) { |