From dcda81db3eb61bdf69751ce6963b564abf7b7e0c Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Sun, 17 Sep 2017 22:47:51 -0400 Subject: Add vhost-user configurations This patch adds capability for configuring the following options in vhost-user section: - coalesce-frames - coalesce-time - dont-dump-memory JIRA: PUP-8 Change-Id: I906e7d3c937d2f1133e2bfc0838c16063b535b87 Signed-off-by: Feng Pan --- spec/classes/fdio_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'spec/classes/fdio_spec.rb') diff --git a/spec/classes/fdio_spec.rb b/spec/classes/fdio_spec.rb index 8f0a088..4786ac0 100644 --- a/spec/classes/fdio_spec.rb +++ b/spec/classes/fdio_spec.rb @@ -71,6 +71,21 @@ describe 'fdio' do is_expected.to contain_vpp_config('dpdk/socket-mem').with_value('1024,1024') end end + + context 'with vhost-user' do + before :each do + params.merge!( + :vpp_vhostuser_coalesce_frames => 32, + :vpp_vhostuser_coalesce_time => 0.05, + :vpp_vhostuser_dont_dump_memory => true + ) + end + it 'should configure vhost-user options' do + is_expected.to contain_vpp_config('vhost-user/coalesce-frames').with_value('32') + is_expected.to contain_vpp_config('vhost-user/coalesce-time').with_value('0.05') + is_expected.to contain_vpp_config('vhost-user/dont-dump-memory').with_ensure('present') + end + end end shared_examples_for 'fdio - service' do -- cgit 1.2.3-korg