summaryrefslogtreecommitdiffstats
path: root/test/vpp_vhost_interface.py
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/vpp_vhost_interface.py
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/vpp_vhost_interface.py')
-rw-r--r--test/vpp_vhost_interface.py5
1 files changed, 5 insertions, 0 deletions
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,