summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-08-21 16:07:03 +0200
committerDamjan Marion <dmarion@me.com>2018-09-20 09:12:12 +0000
commitee2e58f6ea802437ed52cc3e4d59b89d92757135 (patch)
tree9c84a87979cf99a89635446a9868f88c84fe14df /test
parentfe0aa7648703f63159be8362836b39d4727fbb0c (diff)
vhost-user: Add disable feature support in api
Two flags to disable mergable rx buffers and indirect descriptors are added to api. Change-Id: Iba0ee9c48d19dfc3d3420a3fdaf44a1a1d325e99 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/vpp_papi_provider.py8
-rw-r--r--test/vpp_vhost_interface.py5
2 files changed, 12 insertions, 1 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 5ff7db990c0..e926c46f550 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -3729,6 +3729,8 @@ class VppPapiProvider(object):
is_server,
sock_filename,
renumber,
+ disable_mrg_rxbuf,
+ disable_indirect_desc,
custom_dev_instance,
use_custom_mac,
mac_address,
@@ -3737,16 +3739,20 @@ class VppPapiProvider(object):
:param is_server: is server
:param sock_filename: socket name
:param renumber: renumber
+ :param disable_mrg_rxbuf: disable mergable rx buffers
+ :param disable_indirect_desc: disable indirect descriptors
:param custom_dev_instance: custom dev instance
:param use_custom_mac: use custom mac
:param mac_address: mac address
- :param tag: tag (default ''
+ :param tag: tag (default '')
"""
return self.api(
self.papi.create_vhost_user_if,
{'is_server': is_server,
'sock_filename': sock_filename,
'renumber': renumber,
+ 'disable_mrg_rxbuf': disable_mrg_rxbuf,
+ 'disable_indirect_desc': disable_indirect_desc,
'custom_dev_instance': custom_dev_instance,
'use_custom_mac': use_custom_mac,
'mac_address': mac_address,
diff --git a/test/vpp_vhost_interface.py b/test/vpp_vhost_interface.py
index e86be5d27b5..0a5f6b72b2f 100644
--- a/test/vpp_vhost_interface.py
+++ b/test/vpp_vhost_interface.py
@@ -5,6 +5,7 @@ class VppVhostInterface(VppInterface):
"""VPP vhost interface."""
def __init__(self, test, sock_filename, is_server=0, renumber=0,
+ disable_mrg_rxbuf=0, disable_indirect_desc=0,
custom_dev_instance=0, use_custom_mac=0, mac_address='',
tag=''):
@@ -13,6 +14,8 @@ class VppVhostInterface(VppInterface):
self.is_server = is_server
self.sock_filename = sock_filename
self.renumber = renumber
+ self.disable_mrg_rxbuf = disable_mrg_rxbuf
+ self.disable_indirect_desc = disable_indirect_desc
self.custom_dev_instance = custom_dev_instance
self.use_custom_mac = use_custom_mac
self.mac_address = mac_address
@@ -22,6 +25,8 @@ class VppVhostInterface(VppInterface):
r = self.test.vapi.create_vhost_user_if(self.is_server,
self.sock_filename,
self.renumber,
+ self.disable_mrg_rxbuf,
+ self.disable_indirect_desc,
self.custom_dev_instance,
self.use_custom_mac,
self.mac_address,